Skip to content

Instantly share code, notes, and snippets.

@thinkryan
Created February 18, 2017 20:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thinkryan/5e898f23041798333db88e896083027b to your computer and use it in GitHub Desktop.
Save thinkryan/5e898f23041798333db88e896083027b to your computer and use it in GitHub Desktop.
Shell installation of Zsh and theme setup on WPLib Vagrant deployment
# ZSH Installation
# Install git and zsh prerequisites
config.vm.provision :shell, inline: "apt-get -y install git"
config.vm.provision :shell, inline: "apt-get -y install zsh"
# Clone Oh My Zsh from the git repo
config.vm.provision :shell, privileged: false,
inline: "git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh"
# Copy in the default .zshrc config file
config.vm.provision :shell, privileged: false,
inline: "cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc"
# Change the vagrant user's shell to use zsh
config.vm.provision :shell, inline: "chsh -s /bin/zsh vagrant"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment