ZSH - pflavio/macbookpro-2016-linux GitHub Wiki

By default, Arch Linux uses the Bash shell. Personally I prefer ZSH (and Oh-My-Zsh), so here is how to install it:

  1. Check currently used shell echo $SHELL (should return bash)
  2. Install ZSH via sudo pacman -S zsh
  3. Run zsh to check if the installation was sucessfull (bash will turn to zsh in this shell only, abort the basic config)
  4. Make ZSH your default shell with chsh -s /bin/zsh
  5. Log out and log in
  6. Perform the basic config (use the guide)
  7. Install Oh-My-Zsh via sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  8. Install plug-in zsh-syntax-highlighting git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
  9. Install plug-in zsh-autosuggestions git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
  10. Install plug-in zsh-Z git clone https://github.com/agkozak/zsh-z $ZSH_CUSTOM/plugins/zsh-z
  11. Install plug-in fzf git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf, then ~/.fzf/install
  12. Locate your .zshrc config file under /home/yourusername with ls -al
  13. Edit the config file and add plug-ins : plugins=( fzf git history-substring-search colored-man-pages zsh-autosuggestions zsh-syntax-highlighting zsh-z )