Advertisement
Guest User

Untitled

a guest
Oct 6th, 2015
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. local DEFAULT="[33[0;39m]"
  2. local ROOK="[33[38;5;24m]"
  3. PS1="${ROOK}$${DEFAULT} "
  4.  
  5. export PS1='%{^[[01;38;05;214;48;05;123m%}%m%{^[[0m%} '
  6.  
  7. export PS1='%F{214}%K{123}%m%k%f'
  8.  
  9. %F (%f)
  10. Start (stop) using a different foreground colour, if supported by the terminal. The colour may be specified two ways: either as a numeric argument, as normal, or by a sequence in braces following the %F, for example %F{red}. In the latter case the values allowed are as described for the fg zle_highlight attribute; see Char‐
  11. acter Highlighting in zshzle(1). This means that numeric colours are allowed in the second format also.
  12.  
  13. %K (%k)
  14. Start (stop) using a different bacKground colour. The syntax is identical to that for %F and %f.
  15.  
  16. $> print -P '%F{214}%K{123}%m%k%f'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement