Skip to content

Instantly share code, notes, and snippets.

@thinkryan
Created February 18, 2017 20:20
Show Gist options
  • 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