Permalink
Browse files

Add zsh

  • Loading branch information...
joshuaclayton committed Feb 26, 2012
1 parent af82b3e commit fd1108a70a19d6760e87317ab03b848fdb658591
Showing with 15 additions and 0 deletions.
  1. +1 −0 cookbooks/vagrant/recipes/default.rb
  2. +14 −0 cookbooks/zsh/recipes/default.rb
@@ -1,2 +1,3 @@
require_recipe "git"
require_recipe "tmux"
+require_recipe "zsh"
@@ -0,0 +1,14 @@
+package "zsh" do
+ action :install
+end
+
+bash "change shell to zsh" do
+ code <<-EOF
+ chsh -s /usr/bin/zsh $SUDO_USER
+ chsh -s /usr/bin/zsh $USER
+ chsh -s /usr/bin/zsh
+ zsh
+ EOF
+
+ not_if "[[ $0 = '-zsh' ]]"
+end

0 comments on commit fd1108a

Please sign in to comment.