From 499003dd7270bcaa06b2b02af4fccd96c0c43af5 Mon Sep 17 00:00:00 2001 From: Yan Pritzker Date: Mon, 16 Dec 2013 17:27:06 -0600 Subject: [PATCH] Fall back to /bin/zsh if /usr/local/bin/zsh doesn't exist --- Rakefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index fd23180..de492c8 100644 --- a/Rakefile +++ b/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" else puts "Setting zsh as your default shell" - run %{ chsh -s /usr/local/bin/zsh } + if File.exists?("/usr/local/bin/zsh") + run %{ chsh -s /usr/local/bin/zsh } + else + run %{ chsh -s /bin/zsh } + end end end