Archiv der Kategorie: Uncategorized

ZSH in Unix Terminals

Install ZSH with cool features

ZSH is one of my favorited shells. I like it because it has more functionality and some stuff is more easy in ZSH then in bash – at least for me. Furthermore, ZSH is also available in FreeBSD and has some cool features which you can add. Here are a small manual that shows you how to install ZSH with cool colors, autocomplete and some more. Have fun!

Update system, install ZSH and oh-my-zsh

sudo apt update
sudo apt full-upgrade -y
sudo apt install zsh
sudo apt install powerline fonts-powerline
git clone ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
vim .zshrc

Use a cool theme

Find the line ZSH_THEME="robbyrussell" and replace it ZSH_THEME="agnoster"

Change your default shell

chsh -s /bin/zsh

Update oh-my-zsh:

cd .oh-my-zsh

Syntax highlighting

git clone "$HOME/.zsh-syntax-highlighting" --depth 1
echo "source $HOME/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> "$HOME/.zshrc"