Skip to content

Instantly share code, notes, and snippets.

@shovanch
Last active September 10, 2018 19:28
Show Gist options
  • Select an option

  • Save shovanch/84f8e6cc066946c8f190891df985909b to your computer and use it in GitHub Desktop.

Select an option

Save shovanch/84f8e6cc066946c8f190891df985909b to your computer and use it in GitHub Desktop.
How to install nice terminal

sudo apt-get update sudo apt-get upgrade -y sudo do-release-upgrade -d

  • Setup Node and git in ubuntu Node Instruction sudo apt-get install -y nodejs and for git : sudo apt install git
  • Install ZSH sudo apt-get install zsh
  • Open your bash profile nano ~/.bashrc
  • Add this to set it to use ZSH as default in nano ~/.bashrc:
# SET ZSH as Default
if [ -t 1 ]; then
exec zsh
fi
  • install oh-my-zsh sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

  • Install powerline fonts sudo apt-get install fonts-powerline

  • Install spaceship prompt

  • Install Syntax highlighting git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

  • activate in nano ~/.zshrc plugins=( [plugins...] zsh-syntax-highlighting)

  • Source ~/.zshrc to take changes into account: source ~/.zshrc

  • Install pure prompt [Optional]

sudo npm install --global pure-prompt --allow-root --unsafe-perm=true
  • Change this in nano ~/.zshrc
# .zshrc
autoload -U promptinit; promptinit
prompt pure
  • FOR PURE PROMPT

  • Set ZSH_THEME="" in your .zshrc to disable oh-my-zsh themes

  • source $ZSH/oh-my-zsh.sh

  • Set ZSH_DISABLE_COMPFIX=true in your zshrc file, before oh-my-zsh.sh is sourced

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