Created
June 22, 2017 13:36
-
-
Save pereirinha/fad888b742006f20a30c601624715dc6 to your computer and use it in GitHub Desktop.
VVV propost provision goodies
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
#!/usr/bin/env bash | |
# Update Aptitude | |
echo "Updating Aptitude" | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
# HTOP | |
echo "Installing HTOP" | |
sudo apt-get install -y htop | |
# ZSH | |
echo "Installing Zsh" | |
sudo apt-get install -y zsh | |
# Oh my zsh | |
echo "Installing Oh-My-Zsh" | |
sudo -u vagrant -H sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
sudo -u vagrant chsh -s /bin/zsh vagrant <<< vagrant | |
# WP CLI Autocomplete | |
echo "Adding WP CLI autocomplete" | |
sudo -u vagrant -H wget https://raw.githubusercontent.com/wp-cli/wp-cli/master/utils/wp-completion.bash -O /home/vagrant/wp-completion.bash | |
echo autoload -U compinit && echo compinit && echo autoload -U bashcompinit && echo bashcompinit && source /home/vagrant/wp-completion.bash | |
# Z | |
echo "Adding Z" | |
sudo -u vagrant wget https://raw.githubusercontent.com/rupa/z/master/z.sh -O /home/vagrant/z.sh | |
echo . /home/vagrant/z.sh >> /home/vagrant/.zshrc | |
# Add vagrant user bin to PATH | |
echo export PATH="/home/vagrant/bin:$PATH" >> /home/vagrant/.zshrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment