tips:zsh

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tips:zsh [2018/11/05 09:58] – [powerline arch] scipiotips:zsh [2018/11/05 10:38] (current) – [powerline arch] scipio
Line 29: Line 29:
 <code> <code>
 sudo pacman -S powerline powerline-fonts zsh-theme-powerlevel9k sudo pacman -S powerline powerline-fonts zsh-theme-powerlevel9k
 +</code>
 +
 +add inconsolata font for powerline
 +<code>
 +sudo wget https://github.com/powerline/fonts/blob/master/Inconsolata/Inconsolata%20for%20Powerline.otf?raw=true -O /usr/share/fonts/OTF/Inconsolata\ for\ Powerline.otf
 +sudo fc-cache -f -v
 </code> </code>
  
Line 38: Line 44:
 if [[ -r /usr/share/zsh-theme-powerlevel9k/powerlevel9k.zsh-theme ]]; then if [[ -r /usr/share/zsh-theme-powerlevel9k/powerlevel9k.zsh-theme ]]; then
     source /usr/share/zsh-theme-powerlevel9k/powerlevel9k.zsh-theme     source /usr/share/zsh-theme-powerlevel9k/powerlevel9k.zsh-theme
 +    POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(virtualenv nodeenv dir vcs)
 +    POWERLEVEL9K_SHORTEN_DIR_LENGTH=1
 +    POWERLEVEL9K_SHORTEN_DELIMITER=""
 +    POWERLEVEL9K_SHORTEN_STRATEGY="truncate_from_right"
 fi fi
 </file> </file>
Line 48: Line 58:
 </file> </file>
  
- +select inconsolata for powerline medium in tilix
 ==== powerline ubuntu ==== ==== powerline ubuntu ====
  
  • tips/zsh.1541408307.txt.gz
  • Last modified: 2018/11/05 09:58
  • by scipio