Merge pull request #426 from sagmor/add-zsh-to-standard-shells
Add zsh to standard shell list
This commit is contained in:
commit
59bac45dc9
4
Rakefile
4
Rakefile
@ -252,6 +252,10 @@ def install_prezto
|
||||
else
|
||||
puts "Setting zsh as your default shell"
|
||||
if File.exists?("/usr/local/bin/zsh")
|
||||
if File.readlines("/private/etc/shells").grep("/usr/local/bin/zsh").empty?
|
||||
puts "Adding zsh to standard shell list"
|
||||
run %{ echo "/usr/local/bin/zsh" | sudo tee -a /private/etc/shells }
|
||||
end
|
||||
run %{ chsh -s /usr/local/bin/zsh }
|
||||
else
|
||||
run %{ chsh -s /bin/zsh }
|
||||
|
Loading…
Reference in New Issue
Block a user