Oh My Zsh! I ❤ ZSH

Oh My Zsh! I ❤ ZSH

MY best Shell so far!

·

1 min read

Installing ZSH

Installing ZSH in Ubuntu

Installing ZSH

sudo apt install zsh -y

Installing Oh My Zsh

Go to the OMZ website Oh My Zsh, go to install, and you should see the installation command like the following (might be updated in the future, so please check the website):

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Installing Power10K theme

Cloning

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

In ~/.zshrc

Add this line or replace the current variable.

ZSH_THEME="powerlevel10k/powerlevel10k"

Installing zsh-autocomplete

Cloning

git clone --depth 1 -- https://github.com/marlonrichert/zsh-autocomplete.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-autocomplete

In ~/.zshrc

Add the zsh-autocomplete to the plugins.

Installing zsh-autosuggestions

Cloning

git clone --depth 1 -- https://github.com/zsh-users/zsh-autosuggestions.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

In ~/.zshrc

Add the zsh-autosuggestions to the plugins.

Installing zsh-syntax-highlighting

Cloning

git clone --depth 1 -- https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

In ~/.zshrc

Add the zsh-syntax-highlighting to the plugins.

Installing fzf (fuzzy finder)

Cloning

git clone --depth 1 -- https://github.com/junegunn/fzf.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/fzf

Invoking the installer for the binary

${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/fzf/install

Accept yes for the next prompts.

In ~/.zshrc

  • Add the fzf to the plugins.

  • Add the following export:

    •   export FZF_BASE=${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/fzf