This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tips:zsh [2017/11/15 21:39] – [powerline] scipio | tips:zsh [2018/11/05 10:38] (current) – [powerline arch] scipio | ||
|---|---|---|---|
| Line 25: | 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 32: | 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 51: | Line 86: | ||
| </ | </ | ||
| + | <file ini ~/ | ||
| + | POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(virtualenv dir vcs) | ||
| + | POWERLEVEL9K_SHORTEN_DIR_LENGTH=1 | ||
| + | POWERLEVEL9K_SHORTEN_DELIMITER="" | ||
| + | POWERLEVEL9K_SHORTEN_STRATEGY=" | ||
| + | </ | ||