Simple yet awesome zsh+ oh-my-zsh development environment setup

Having an efficient and powerful development environment setup is important to boost the productivity and bring out the best while writing code, debugging, building etc so that we can focus more on creating something valuable and less on just trying to make things work. In this article as well as more to follow, we will see how a basic shell setup can help us in that direction. I have done these steps on Ubuntu WSL in Windows 10. For native ubuntu setup, you just need to see how to setup powerline font for ubuntu(prerequisite), rest all the steps will be same.

Prerequisite

Download and install powerline fonts for windows using this tutorial https://medium.com/@slmeng/how-to-install-powerline-fonts-in-windows-b2eedecace58

TLDR

For quick setup, just execute the below commands 1 by 1 in the ubuntu shell to setup zsh and oh-my-zsh. In future articles, we will build tmux, vim (and possibly other tools) on top of this add power to this setup.

zsh and oh-my-zsh setup steps

Setting up zsh and oh-my-zsh

Clone the repo which contains theme for zsh

git clone https://github.com/aviralwal/newserversetup.git
cd newserversetup
sudo apt update
sudo apt install -y zsh
sudo chsh -s $(which zsh) $(whoami)
touch ~/.zshrc
echo "#hello" > ~/.zshrc
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" #select option 'y'git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestionsgit clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlightingsed -i 's/plugins=(git)/plugins=(git zsh-autosuggestions zsh-syntax-highlighting)/g' ~/.zshrcecho ‘export TERM=”xterm-256color”’ >> ~/.zshrc
source ~/.zshrc
cp bullet-train.zsh-theme ~/.oh-my-zsh/themessed -i 's/ZSH_THEME="robbyrussell"/ZSH_THEME="bullet-train"/g' ~/.zshrcsource ~/.zshrc