aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradam.danischewski@gmail.com <adam.danischewski@code.google.com>2015-12-26 05:27:54 -0500
committeradam.danischewski@gmail.com <adam.danischewski@code.google.com>2015-12-26 05:27:54 -0500
commit367b79459cdf8f0dc6516332d706e069c6306500 (patch)
tree3b2b38f5b8bb011047ccdd35936d1eae09e7f4f7
parent332dd8a1fadbe2cb71111c9704d79c36af1cd8e3 (diff)
Fixed alias escaping.
-rwxr-xr-xconfig.bsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.bsh b/config.bsh
index 503dc8b..9bbf90f 100755
--- a/config.bsh
+++ b/config.bsh
@@ -10,7 +10,7 @@ which firefox &>/dev/null && firefox "http://localhost:8000/info2html?%28coreuti
echo "The following alias will run the html version of info, if you don't have firefox edit it to your favorite browser."
echo "It will check if the php server is running and launch info2html"
echo "Creating i2h.alias file.. "
-echo "alias i2h='_(){ main=${1}; shift; port=8000; netstat -an | { ! grep -q \":${port}.*LISTEN\"; } && (php -S localhost:8000 -t / $(pwd)/routing.php & ); firefox \"http://localhost:8000/info2html?(${main})$(sed \"s/ /%2520/g\" <<< \"$@\")\"; }; _'" > i2h.alias
+echo "alias i2h='_(){ main=\${1}; shift; port=8000; netstat -an | { ! grep -q \":\${port}.*LISTEN\"; } && (php -S localhost:8000 -t / $(pwd)/routing.php & ); firefox \"http://localhost:8000/info2html?(\${main})\$(sed \"s/ /%2520/g\" <<< \"\$@\")\"; }; _'" > i2h.alias
echo "Add the entry in the i2h.alias file to your .bashrc file. "
echo "You should now be able to run info whenever you want as follows:"
echo "\$> i2h coreutils wc invocation"