General Information
Setting up great looking terminals with zsh, oh-my-zsh and theming.
Checklist
Install zsh.
sudo dnf install zsh
sudo apt install zsh
sudo yum install zsh
Configure zsh as your default login shell.
chsh -s $(which zsh)
echo $SHELL
Note: This only works for local accounts. If you are using LDAP, you will need to set your default login shell in your LDAP user profile.
Oh-My-Zsh is a framework for managing zsh configuration. It adds tons of themes and plugins to zsh.
Official site: https://ohmyz.sh/
sudo dnf install git curl
sudo apt install git curl
sudo yum install git curl
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Configuring zsh.
Easily change your zsh theme.
Example: Change to agnoster theme
vim ~/.zshrc # Set theme name here ZSH_THEME="agnoster"
source ~/.zshrc
The powerline fonts are intended for use with the agnoster theme (they properly display certain symbols that it uses), but are a clean looking set of fonts that would be a great addition any in case.
git clone https://github.com/powerline/fonts.git
cd fonts ./install
Note: If Symbols aren't displaying properly, close the terminal application and re-open it for the fonts to load. (And verify you are using a Powerline font)
"Colour0"="131,148,150" (Default Foreground) "Colour1"="147,161,161" (Default Bold Foreground) "Colour2"="0,43,54" (Default Background) "Colour3"="7,54,66" (Default Bold Background) "Colour4"="0,43,54" (Cursor Text) "Colour5"="238,232,213" (Cursor Colour) "Colour6"="7,54,66" (ANSI Black) "Colour7"="0,43,56" (ANSI Black Bold) "Colour8"="220,50,47" (ANSI Red) "Colour9"="203,75,22" (ANSI Red Bold) "Colour10"="133,153,0" (ANSI Green) "Colour11"="88,110,117" (ANSI Green Bold) "Colour12"="181,137,0" (ANSI Yellow) "Colour13"="101,123,131" (ANSI Yellow Bold) "Colour14"="38,139,210" (ANSI Blue) "Colour15"="131,148,150" (ANSI Blue Bold) "Colour16"="211,54,130" (ANSI Magenta) "Colour17"="108,113,196" (ANSI Magenta Bold) "Colour18"="42,161,152" (ANSI Cyan) "Colour19"="147,161,161" (ANSI Cyan Bold) "Colour20"="238,232,213" (ANSI White) "Colour21"="253,246,227" (ANSI White Bold)
The syntax highlighter plugin adds syntax highlighting to the commands you are typing.
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
mv zsh-syntax-highlighting ~/.oh-my-zsh/plugins/
vim ~/.zshrc # Add plugins to enable space separated plugins=(git python vi-mode z zsh-syntax-highlighting)
source ~/.zshrc