Skip to content

Instantly share code, notes, and snippets.

@TariqueNasrullah
Created June 21, 2021 06:42
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 TariqueNasrullah/22d16cbaae57580cb7e60d1ce4d20b74 to your computer and use it in GitHub Desktop.
Save TariqueNasrullah/22d16cbaae57580cb7e60d1ce4d20b74 to your computer and use it in GitHub Desktop.
Oh My Zsh configuration & installation guide

Install prerequisite packages (ZSH, powerline & powerline fonts)

sudo apt install zsh
sudo apt-get install powerline fonts-powerline

Clone the Oh My Zsh Repo

git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh

Create a New ZSH configuration file

cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

Install PowerLevel9k!

git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k

Set up a theme for your Terminal — Open .zshrc File using gedit editor

gedit .zshrc

And change and put these lines :

ZSH_THEME="powerlevel9k/powerlevel9k"
POWERLEVEL9K_DISABLE_RPROMPT=true
POWERLEVEL9K_PROMPT_ON_NEWLINE=false
POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="▶"
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX=""

Change Default Shell

chsh -s /bin/zsh

Syntax Highlighting

Clone the ZSH Syntax Highlighting git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "$HOME/.zsh-syntax-highlighting" --depth 1

Add syntax-highlighting in .zshrc Configuration

echo "source $HOME/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> "$HOME/.zshrc"

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