Skip to content

Instantly share code, notes, and snippets.

@Edofre
Created February 15, 2018 15:35
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Edofre/f0ede48d95c25148b5d0ab3213ec328c to your computer and use it in GitHub Desktop.
Save Edofre/f0ede48d95c25148b5d0ab3213ec328c to your computer and use it in GitHub Desktop.
ZSH in Laravel Homestead with local .zshrc file
############################################################
# 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 -C ~/.oh-my-zsh pull || git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh"
# 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"
# # Copy the hosts zshrc to the vagrant box location
config.vm.provision "file", source: "~/.zshrc", destination: ".zshrc"
############################################################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment