This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tips:zsh [2017/11/06 08:05] – [install] scipio | tips:zsh [2018/11/05 10:38] (current) – [powerline arch] scipio | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Z shell ====== | ====== Z shell ====== | ||
| + | |||
| + | ===== keys ===== | ||
| + | |||
| + | * CTRL + U: this will clear the entire line | ||
| ===== install ===== | ===== install ===== | ||
| Line 17: | Line 21: | ||
| </ | </ | ||
| - | <file .zshrc> | + | < |
| plugins=(git zsh-autosuggestions) | plugins=(git zsh-autosuggestions) | ||
| + | </ | ||
| + | |||
| + | ==== powerline arch ==== | ||
| + | |||
| + | < | ||
| + | sudo pacman -S powerline powerline-fonts zsh-theme-powerlevel9k | ||
| + | </ | ||
| + | |||
| + | add inconsolata font for powerline | ||
| + | < | ||
| + | sudo wget https:// | ||
| + | sudo fc-cache -f -v | ||
| + | </ | ||
| + | |||
| + | <file txt ~/ | ||
| + | if [[ -r / | ||
| + | powerline-daemon -q | ||
| + | source / | ||
| + | fi | ||
| + | if [[ -r / | ||
| + | source / | ||
| + | POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(virtualenv nodeenv dir vcs) | ||
| + | POWERLEVEL9K_SHORTEN_DIR_LENGTH=1 | ||
| + | POWERLEVEL9K_SHORTEN_DELIMITER="" | ||
| + | POWERLEVEL9K_SHORTEN_STRATEGY=" | ||
| + | fi | ||
| + | </ | ||
| + | |||
| + | <file txt ~/ | ||
| + | if [[ -r / | ||
| + | powerline-daemon -q | ||
| + | source / | ||
| + | fi | ||
| + | </ | ||
| + | |||
| + | select inconsolata for powerline medium in tilix | ||
| + | ==== powerline ubuntu ==== | ||
| + | |||
| + | < | ||
| + | sudo apt install -y python-pip | ||
| + | sudo pip install powerline-status | ||
| + | |||
| + | # inconsolata for powerline medium | ||
| + | sudo mkdir -o usr/ | ||
| + | sudo wget https:// | ||
| + | sudo fc-cache -f -v | ||
| + | |||
| + | # powerlevel9k | ||
| + | git clone https:// | ||
| + | |||
| + | # .zshrc | ||
| + | ZSH_THEME=" | ||
| + | |||
| + | # awesome powerline fonts | ||
| + | cd | ||
| + | wget https:// | ||
| + | wget https:// | ||
| + | mkdir -p .config/ | ||
| + | mv PowerlineSymbols.otf ~/.fonts/ | ||
| + | fc-cache -vf ~/.fonts/ | ||
| + | mv 10-powerline-symbols.conf ~/ | ||
| + | </ | ||
| + | |||
| + | <file ini ~/ | ||
| + | POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(virtualenv dir vcs) | ||
| + | POWERLEVEL9K_SHORTEN_DIR_LENGTH=1 | ||
| + | POWERLEVEL9K_SHORTEN_DELIMITER="" | ||
| + | POWERLEVEL9K_SHORTEN_STRATEGY=" | ||
| </ | </ | ||