Install Oh My Zsh on a Vagrant Box as part of the bootstrap process

Found the solution:

# Added zsh shell.
sudo apt-get install zsh
wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh 
sudo chsh -s /bin/zsh vagrant
zsh

As an nice addition, so that your terminals don’t look too similar on the different boxes

# Change the oh my zsh default theme.
sed -i 's/ZSH_THEME="robbyrussell"/ZSH_THEME="3den"/g' ~/.zshrc

Leave a Comment

tech