Oh My Zsh is a framework for Zsh, the Z shell.
- In order for Oh My Zsh to work, Zsh must be installed.
- Please run
zsh --versionto confirm. - Expected result:
zsh 5.0.8or more recent
- Please run
- Additionally, Zsh should be set as your default shell.
- Please run
echo $SHELLfrom a new terminal to confirm. - Expected result:
/usr/bin/zshor similar
- Please run
If necessary, follow these steps to install Zsh:
-
There are two main ways to install Zsh:
- With the package manager of your choice, e.g.
sudo apt install zsh(see below for more examples) - From source, following the instructions from the Zsh FAQ.
- With the package manager of your choice, e.g.
-
Verify installation by running
zsh --version. Expected result:zsh 5.0.8or more recent. -
Make it your default shell:
chsh -s $(which zsh)- Note that this will not work if Zsh is not in your authorized shells list (/etc/shells) or if you don't have permission to use
chsh. If that's the case you'll need to use a different procedure.
- Note that this will not work if Zsh is not in your authorized shells list (/etc/shells) or if you don't have permission to use
-
Log out and log back in again to use your new default shell.
-
Test that it worked with
echo $SHELL. Expected result:/bin/zshor similar. -
Test with
$SHELL --version. Expected result:zsh 5.8or similar
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Download zsh-autosuggestions by
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
- Download zsh-syntax-highlighting by
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
-
nano ~/.zshrcfindplugins=(git) -
Append
zsh-autosuggestions & zsh-syntax-highlightingtoplugins()like this
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
-
Reopen terminal
-
Install Powerlevel10k
git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
- Enable it, change the value of ZSH_THEME
~/.zshrcZSH_THEME="powerlevel10k/powerlevel10k" - Reopen terminal