Skip to content

Instantly share code, notes, and snippets.

@KarolinaCzo
Last active October 23, 2020 18:12
Show Gist options
  • Save KarolinaCzo/cf9744d4915a1d2ef09d14e3068a84f9 to your computer and use it in GitHub Desktop.
Save KarolinaCzo/cf9744d4915a1d2ef09d14e3068a84f9 to your computer and use it in GitHub Desktop.
Add zsh shell
More info here:
https://github.com/robbyrussell/oh-my-zsh
1) Install zsh:
sudo dnf install zsh
2) Install zsh as the main shell (from Basic Installation)
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
3) To make sure it's installed correctly and added as the main shell check /etc/passwd file:
cat /etc/passwd
3a) If it's not there - set it as your default shell:
chsh -s $(which zsh)
more here: https://github.com/ohmyzsh/ohmyzsh/wiki/Installing-ZSH
cat - to display information form the file in the console
In the displayed info, right at the end, text to the user name (in my case next to 'karolina') should be usr/bin/zsh.
4) Change the theme:
- display the file in the shell by typing: nano ~/.zshrc
- change the theme ZSH_THEME="ys"
- save by clicking ^O (^ = Crtl)
- click Enter
- to change the shell without closing the terminal type: exec zsh
DONE!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment