Installation
- To begin, install zsh using your package manager. In this case, I’ll use pacman with the following command:
- Next, verify the newly installed zsh version:
- To confirm that you are using the new shell, check the current shell with:
- Now, open the /etc/passwd file with your preferred text editor. For example, you can use nvim:
- Within the file, find the line corresponding to your username and replace
/bin/bash
with/bin/zsh
. In my case, my username is rxtsel:
- Save the changes and close the file.
- Change the default shell by running the following command:
- Continue by installing oh-my-zsh and git:
-
Restart your terminal to apply the changes.
-
Then, edit the
.zshrc
file with your favorite text editor, which should be in the root of the user folder/home/rxtsel/.zshrc
. In my case, I already have my customized configuration for WSL, but feel free to use the one you prefer:-
For this configuration, you will need to install the following plugins and programs:
-
- Restart your terminal to apply the changes.
Congratulations! Now you have Zsh installed, configured with oh-my-zsh, and your terminal is ready to be used efficiently.