Skip to content

Instantly share code, notes, and snippets.

@aviralwal
Last active December 13, 2020 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save aviralwal/f0768586d6bbbb65e1e6846bfff8445c to your computer and use it in GitHub Desktop.
Save aviralwal/f0768586d6bbbb65e1e6846bfff8445c to your computer and use it in GitHub Desktop.
For medium article - Simple yet awesome zsh+ tmux development environment setup
# clone repo to get theme file for oh-my-zsh
git clone https://github.com/aviralwal/newserversetup.git
cd newserversetup
#zsh setup
sudo apt update
sudo apt install -y zsh
sudo chsh -s $(which zsh) $(whoami)
touch ~/.zshrc
echo "#hello" > ~/.zshrc
zsh
#oh my zsh setup
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-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
sed -i 's/plugins=(git)/plugins=(git zsh-autosuggestions zsh-syntax-highlighting)/g' ~/.zshrc
echo 'export TERM="xterm-256color"' >> ~/.zshrc
cp bullet-train.zsh-theme ~/.oh-my-zsh/themes
sed -i 's/ZSH_THEME="robbyrussell"/ZSH_THEME="bullet-train"/g' ~/.zshrc
source ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment