tips:zsh

This is an old revision of the document!


Z shell

  • CTRL + U: this will clear the entire line
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
.zshrc
plugins=(git zsh-autosuggestions)
sudo apt install -y python-pip
sudo pip install powerline-status

# inconsolata for powerline medium
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"
  • tips/zsh.1509954248.txt.gz
  • Last modified: 2017/11/06 08:44
  • by scipio