mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-20 03:13:33 +01:00
update chsh command call
/etc/shells may not point to /usr/bin/zsh (which is the result when using 'which zsh') using chsh -l and choosing zsh from there will guarantee chsh to work without failure. Ref #3779
This commit is contained in:
parent
75b9030f48
commit
9137d543b5
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 $(chsh -l | grep "zsh" -m 1)
|
||||
fi
|
||||
|
||||
echo "\033[0;32m"' __ __ '"\033[0m"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue