Skip to content

Instantly share code, notes, and snippets.

@jesseschutt
Created January 5, 2015 15:59
Show Gist options
  • Save jesseschutt/8a2ab38b28cc9e5b2bb9 to your computer and use it in GitHub Desktop.
Save jesseschutt/8a2ab38b28cc9e5b2bb9 to your computer and use it in GitHub Desktop.
Adding Oh-My-ZSH to Homestead
if [ ! -f /usr/local/extra_homestead_software_installed ]; then
echo 'installing some extra software'
#
# install zsh
#
apt-get install zsh -y
#
# install oh my zhs
# (after.sh is run as the root user, but ssh is the vagrant user)
#
git clone git://github.com/robbyrussell/oh-my-zsh.git /home/vagrant/.oh-my-zsh
cp /home/vagrant/.oh-my-zsh/templates/zshrc.zsh-template /home/vagrant/.zshrc
chsh -s /usr/bin/zsh vagrant
#
# remember that the extra software is installed
#
touch /usr/local/extra_homestead_software_installed
else
echo "extra software already installed... moving on..."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment