First of all, check the activated shell using this command.
1
echo $SHELL
The below command will display all the available shell.
1
cat /etc/shells
Install ZSH
1 2 3
dnf -y install zsh # If chsh command no found : dnf -y install util-linux-user
change shell
1
chsh -s $(which zsh)
Install Oh-My-ZSH
1 2 3 4 5 6
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" # or sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)" # or curl -Lo install.sh https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh
# Uncomment the following line to disable auto-setting terminal title. DISABLE_AUTO_TITLE="true"
# To display Hostname😎PWD_Name as title text HOSTNAME=$(hostname -s)
# Let zsh launch with the custom title. window_title="\033]0;$HOSTNAME😎${PWD##*/}\007" echo -ne "$window_title" # Refresh the custome title when the directory changes. Changed from precmd as it shall suppress the set-title function below function chpwd () { window_title="\033]0;$HOSTNAME😎${PWD##*/}\007" echo -ne "$window_title" } # Setting your own title text on demand. (Don't change dir after setting it 😎) function set-title(){ TITLE="\[\e]2;$*\a\]" echo -e ${TITLE} }