Install and configure Zsh with Oh My Zsh, autosuggestions, zsh-completions, syntax highlighting, and fzf-tab.
sudo apt update && sudo apt install -y zsh git curl fzfchsh -s $(which zsh)Note: Log out and back in for this to take permanent effect. We will do this at the very end.
sh -c "$(curl -fsSL https://install.ohmyz.sh)" "" --unattendedAutosuggestions:
git clone https://github.com/zsh-users/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestionsZSH Completions:
git clone https://github.com/zsh-users/zsh-completions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-completionsSyntax Highlighting:
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlightingfzf-tab:
git clone https://github.com/Aloxaf/fzf-tab ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/fzf-tabOpen your configuration file using a text editor like Nano:
nano ~/.zshrcFind the existing plugins=(git) line in the file. Replace it entirely with the block below.
⚠️ Order matters: You must addfpathabove the plugins array, andfzf-tabmust load beforezsh-syntax-highlightingto avoid tab-completion conflicts.
fpath=(${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-completions/src $fpath)
plugins=(
git
zsh-completions
fzf-tab
zsh-autosuggestions
zsh-syntax-highlighting
)Find the line ZSH_THEME="robbyrussell" and change it to your preferred theme. You can browse choices on the Oh My Zsh themes wiki.
ZSH_THEME="alanpeabody"(Save and close the file by pressing Ctrl+O, Enter, then Ctrl+X)
You must launch your new Zsh environment manually to initialize everything.
-
Launch Zsh:
zsh
-
Reload configuration (if needed in the future):
source ~/.zshrc
-
Log Out: Close your terminal completely or log out of your system session and back in to finalize Zsh as your permanent default shell.