Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save knwng/924fd079f9422b3c270b16ad02e17e2b to your computer and use it in GitHub Desktop.
Save knwng/924fd079f9422b3c270b16ad02e17e2b to your computer and use it in GitHub Desktop.
Oh my zsh with plugins

Oh my zsh.

Install Zsh

sudo apt-get install -y zsh

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins

  • Download zsh-autosuggestions by

git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions

  • Download zsh-syntax-highlighting by

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting

  • Download autojump by

git clone https://github.com/wting/autojump.git

  • Install autojump by

cd autojump && ./install.py && cd ..

  • vim ~/.zshrc find plugins=(git)

  • Append zsh-autosuggestions & zsh-syntax-highlighting to plugins() like this

plugins=(git zsh-autosuggestions zsh-syntax-highlighting autojump)

  • Reopen terminal

Install theme

sudo apt-get install -y fonts-powerline
sudo apt-get install -y ttf-ancient-fonts
wget http://raw.github.com/caiogondim/bullet-train-oh-my-zsh-theme/master/bullet-train.zsh-theme -O $ZSH_CUSTOM/themes/bullet-train.zsh-theme

Modify ~/.zshrc to add

export TERM="xterm-256color"
ZSH_THEME="bullet-train"

Ref

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment