Z shell

keys

CTRL + U: this will clear the entire line

install

sudo apt install -y zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
chsh -s $(which zsh)

plugins

git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions

plugins=(git zsh-autosuggestions)

powerline arch

sudo pacman -S powerline powerline-fonts

if [[ -r /usr/lib/python3.7/site-packages/powerline/bindings/zsh/powerline.zsh ]]; then powerline-daemon -q source /usr/lib/python3.7/site-packages/powerline/bindings/zsh/powerline.zsh fi

powerline ubuntu

sudo apt install -y python-pip
sudo pip install powerline-status
# inconsolata for powerline medium
sudo mkdir -o usr/share/fonts/opentype/
sudo wget https://github.com/powerline/fonts/blob/master/Inconsolata/Inconsolata%20for%20Powerline.otf?raw=true -O /usr/share/fonts/opentype/Inconsolata\ for\ Powerline.otf
sudo fc-cache -f -v
# powerlevel9k
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
# .zshrc
ZSH_THEME="powerlevel9k/powerlevel9k"
# awesome powerline fonts
cd
wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
mkdir -p .config/fontconfig/conf.d ~/.fonts
mv PowerlineSymbols.otf ~/.fonts/
fc-cache -vf ~/.fonts/
mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/

POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(virtualenv dir vcs) POWERLEVEL9K_SHORTEN_DIR_LENGTH=1 POWERLEVEL9K_SHORTEN_DELIMITER="" POWERLEVEL9K_SHORTEN_STRATEGY="truncate_from_right"