Fall back to /bin/zsh if /usr/local/bin/zsh doesn't exist
This commit is contained in:
parent
244d865473
commit
499003dd72
4
Rakefile
4
Rakefile
@ -251,7 +251,11 @@ def install_prezto
|
|||||||
puts "Zsh is already configured as your shell of choice. Restart your session to load the new settings"
|
puts "Zsh is already configured as your shell of choice. Restart your session to load the new settings"
|
||||||
else
|
else
|
||||||
puts "Setting zsh as your default shell"
|
puts "Setting zsh as your default shell"
|
||||||
|
if File.exists?("/usr/local/bin/zsh")
|
||||||
run %{ chsh -s /usr/local/bin/zsh }
|
run %{ chsh -s /usr/local/bin/zsh }
|
||||||
|
else
|
||||||
|
run %{ chsh -s /bin/zsh }
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user