Search code examples
vagrantoh-my-zsh

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


I'd like to add Oh My Zsh to my Vagrant bootstrap process, but a straight install isn't working.

via curl:

curl -L http://install.ohmyz.sh | sh

via wget:

wget --no-check-certificate http://install.ohmyz.sh -O - | sh

Solution

  • 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