Merge pull request #265 from duhanebel/zsh_install_check

Fix a bug that was causing rake to overwrite SHELL settings
This commit is contained in:
Yan Pritzker 2013-03-21 06:35:32 -07:00
commit 6f07653bcc

View File

@ -146,8 +146,12 @@ def install_prezto
run %{ mkdir -p $HOME/.zsh.after }
run %{ mkdir -p $HOME/.zsh.prompts }
puts "Setting zsh as your default shell"
run %{ chsh -s /bin/zsh }
if ENV[SHELL].include? 'zsh' then
puts "Zsh is already configured as your shell of choice. Restart your session to load the new settings"
else
puts "Setting zsh as your default shell"
run %{ chsh -s /bin/zsh }
end
end
def want_to_install? (section)