#!/bin/bash source $HOMESTEAD_SCRIPTS/helperFunctions.sh ############################################################################### # # Setup ZSH # ############################################################################### apt-get install zsh -y # If it doesn't exist, lets clone it export ZSH=/home/vagrant/.oh-my-zsh if [ ! -d "$ZSH" ]; then git clone git://github.com/robbyrussell/oh-my-zsh.git $ZSH fi chown -R vagrant:vagrant $ZSH cat < /home/vagrant/.zshrc #!/usr/bin/zsh # Path to our oh-my-zsh installation. export ZSH=/home/vagrant/.oh-my-zsh # If it doesn't exist, lets clone it if [ ! -d "\$ZSH" ]; then git clone git://github.com/robbyrussell/oh-my-zsh.git \$ZSH fi EOT grep export /home/vagrant/.profile | while read line; do echo "$line" >> /home/vagrant/.zshrc; done updateAuth /home/vagrant/.zshrc chsh -s /usr/bin/zsh vagrant