Whenever I’m using a new Laravel Homestead box, or any other environment, I like to have a certain set of tools to be present. ZSH paired with Oh-My-Zsh! works excellent as a base, and I use a fair few of the plugins available for it like autosuggestions/typeahead.
Autojump, Fuzzy Find, Diff So Fancy, and ack are the 4 core scripts I like to install mostly for productivity purposes; these scripts make navigating the terminal a much more pleasant and efficient affair.
This is my after.sh script for Laravel Homestead:
# Install ZSH
echo "Installing ZSH"
sudo apt-get install zsh
# Install Oh-My-Zsh!
echo "Installing Oh-My-Zsh!"
git clone git://github.com/robbyrussell/oh-my-zsh.git /home/ubuntu/.oh-my-zsh
cp /home/ubuntu/.oh-my-zsh/templates/zshrc.zsh-template /home/ubuntu/.zshrc
printf "\nsource ~/.bash_aliases\n" | tee -a /home/ubuntu/.zshrc
printf "\nsource ~/.profile\n" | tee -a /home/ubuntu/.zshrc
chown -R ubuntu:ubuntu /home/ubuntu/.oh-my-zsh
chown ubuntu:ubuntu /home/ubuntu/.zshrc
# Install Oh-My-Zsh goodies
echo "Installing ZSH plugins"
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git /home/ubuntu/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions.git /home/ubuntu/.oh-my-zsh/custom/plugins/zsh-autosuggestions
sed -i 's/plugins=(git)/plugins=(git gitfast ssh-agent colored-man-pages zsh-syntax-highlighting zsh-autosuggestions)/g' /home/ubuntu/.zshrc
# Install Autojump
echo "Installing Autojump"
sudo apt-get install autojump
echo ". /usr/share/autojump/autojump.sh" >> /home/ubuntu/.zshrc
# Install Fuzzy Find
echo "Installing Fuzzy Find"
git clone --depth 1 https://github.com/junegunn/fzf.git /home/ubuntu/.fzf
/home/ubuntu/.fzf/install --all
# Install Diff So Fancy
echo "Installing Diff So Fancy"
wget https://raw.githubusercontent.com/so-fancy/diff-so-fancy/master/third_party/build_fatpack/diff-so-fancy -O ~/diff-so-fancy
chmod +x ~/diff-so-fancy
sudo mv ~/diff-so-fancy /usr/local/bin/diff-so-fancy
git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"
# Install Ack Grep
echo "Installing ack-grep"
sudo apt-get install ack-grep