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:44] – 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 40: | 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=" | ||
+ | </ | ||