Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save febritecno/8d5d5d6866cb88d089bd7280f2e46408 to your computer and use it in GitHub Desktop.
Save febritecno/8d5d5d6866cb88d089bd7280f2e46408 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