Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tips:zsh [2017/11/06 08:43] – [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 21: | Line 25: | ||
</ | </ | ||
- | ==== powerline ==== | + | ==== powerline |
+ | |||
+ | < | ||
+ | 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 | ||
< | < | ||
Line 28: | Line 66: | ||
# inconsolata for powerline medium | # inconsolata for powerline medium | ||
+ | sudo mkdir -o usr/ | ||
sudo wget https:// | sudo wget https:// | ||
sudo fc-cache -f -v | sudo fc-cache -f -v | ||
Line 36: | Line 75: | ||
# .zshrc | # .zshrc | ||
ZSH_THEME=" | 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=" | ||
+ | </ | ||