Commit f5d3109d authored by James Hillyerd's avatar James Hillyerd Committed by Bruno Pinto

OS X `head` command does not support `-` argument for STDIN

parent 4346f6b3
...@@ -13,7 +13,7 @@ function proxy -d "Setup proxy environment variables" ...@@ -13,7 +13,7 @@ function proxy -d "Setup proxy environment variables"
# Hacky way to read password in fish # Hacky way to read password in fish
echo -n 'Proxy Password: ' echo -n 'Proxy Password: '
stty -echo stty -echo
head -n 1 - | read -l pass head -n 1 | read -l pass
stty echo stty echo
echo echo
# URL encode password # URL encode password
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment