make sure updated dependencies
sudo apt update
install zsh
sudo apt install zsh
install oh my zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
/usr/bin/zsh
look over the .zshrc
file to select plugins, themes, and options.
check zsh version
zsh --version
check which shell is currrently running
echo $0
check shell default path
echo $SHELL # /bin/bash
make zsh your default shell, need to logout and log back into Ubuntu for terminal to take effect
chsh -s /usr/bin/zsh
could also use this command
chsh -s $(which zsh)
switch default back to bash need to logout and log back into Ubuntu for terminal to take effect
chsh -s /bin/bash
install powerlevel10k for Oh my zsh
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
close and open a new terminal, ff the p10k configuration wizard does not start automatically, you can run the configuration wizard the powerlevel10k theme with this command:
p10k configure
Now, edit the ZSH_THEME in ~/.zshrc
file into:
ZSH_THEME="powerlevel10k/powerlevel10k"
download zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
download zsh-autocomplete
git clone https://github.com/marlonrichert/zsh-autocomplete.git $ZSH_CUSTOM/plugins/zsh-autocomplete
download zsh-exa
git clone https://github.com/ptavares/zsh-exa.git $ZSH_CUSTOM/plugins/zsh-exa
download zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
Edit ~/.zshrc file
find plugins=(git) replace plugins=(git) with:
plugins=(git zsh-autosuggestions zsh-syntax-highlighting zsh-autocomplete zsh-exa)