mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-20 03:13:33 +01:00
Fix chsh prompt for pipes
When oh-my-zsh is installed via pipes like `curl -L http://.../install.sh | sh` authorization of `chsh` fails because it can't get password from its input. This change forces `chsh` to take input from tty.
This commit is contained in:
parent
1b6af54676
commit
7fc31826e1
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ export PATH=\"$PATH\"
|
|||
|
||||
if [ "$SHELL" != "$(which zsh)" ]; then
|
||||
echo "\033[0;34mTime to change your default shell to zsh!\033[0m"
|
||||
chsh -s `which zsh`
|
||||
chsh -s `which zsh` < /dev/tty
|
||||
fi
|
||||
|
||||
echo "\033[0;32m"' __ __ '"\033[0m"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue