Created
February 15, 2018 15:35
-
-
Save Edofre/f0ede48d95c25148b5d0ab3213ec328c to your computer and use it in GitHub Desktop.
ZSH in Laravel Homestead with local .zshrc file
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
############################################################ | |
# 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