Switching to ZSh (Z-Shell)
Install zsh: dnf install zsh
, then install the Oh-My-Zsh add-on with sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
.
Next, move all your personal shell settings from ~/.bashrc
to ~/.profile
and source the ~/.profile
file in both of your shells as follows:
~/.bashrc
:source ~/.profile
~/.zshrc
: same thing -source ~/.profile
.
The following did not work for me although it was recommended for the ~/.zshrc
file: [[ -e ~/.profile ]] && emulate sh -c 'source ~/.profile'
.
Solution based on one by Ryne Everett [1].