Install and configure ZSH

  1. Install ZSH
sudo apt-get install zsh -y
  1. Install Oh-My-ZSH
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  1. Install zsh-autocomplete
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
  1. Add the plugin to the list of plugins for Oh My Zsh to load (inside ~/.zshrc):
plugins=( 
	# other plugins...
	zsh-autosuggestions
)
  1. Add mvr theme: create the file mvr.zsh-theme in ~/.oh-my-zsh/custom/themeswith the following contents:
PROMPT='%(!.%{%F{yellow}%}.)$USER%{$fg_bold[red]%}@%{$reset_color%}%{$fg[white]%}%M %{$fg_bold[red]%}➜%{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%}% %{$reset_color%}'

  

ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"

ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "

ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗"

ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
  1. Change theme in ~/.zshrcto use the custom theme with the following line:
ZSH_THEME="mvr"