Created
February 18, 2017 20:20
-
-
Save thinkryan/5e898f23041798333db88e896083027b to your computer and use it in GitHub Desktop.
Shell installation of Zsh and theme setup on WPLib Vagrant deployment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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