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