mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-03 15:40:32 +00:00
OS X head
command does not support -
argument for STDIN
This commit is contained in:
parent
4346f6b365
commit
f5d3109d86
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user