OS X head command does not support - argument for STDIN

This commit is contained in:
James Hillyerd 2014-06-11 09:27:46 -07:00 committed by Bruno Pinto
parent 4346f6b365
commit f5d3109d86

View File

@ -13,7 +13,7 @@ function proxy -d "Setup proxy environment variables"
# Hacky way to read password in fish
echo -n 'Proxy Password: '
stty -echo
head -n 1 - | read -l pass
head -n 1 | read -l pass
stty echo
echo
# URL encode password