1
0
mirror of https://github.com/akelge/vim synced 2025-08-16 15:48:40 +00:00

Changed color handling in prompt

Changed nice prompt
This commit is contained in:
2014-05-14 13:05:48 +00:00
parent bba77bdbd4
commit 593b539850
3 changed files with 62 additions and 9 deletions

View File

@ -0,0 +1,18 @@
function prompt_niceOld_setup {
if `fancyTerm`; then
W="::: %n at %m in %. :::"
I="%m::%."
L="%B%K{blue}%F{white}@%m::%2~ %f%k
%F{yellow}%#%f%b "
PS1="%{]2;$W%}%{]1;$I%}$L"
unset W I L
else
# We are not on xterminal
PS1="%B%K{blue}%F{white}[%l] %n@%m:%~ %f%k%F{yellow}%#%f%b "
fi
}
prompt_niceOld_setup
# vim: set ts=4 sw=4 tw=0 ft=zsh :

View File

@ -2,8 +2,8 @@ function prompt_nice_setup {
if `fancyTerm`; then
W="::: %n at %m in %. :::"
I="%m::%."
L="%B%K{blue}%F{white}@%m::%2~ %f%k
%F{yellow}%#%f%b "
L="$FX[bold]$FX[italic]$BG[111]$FG[239]@%m::%2~ $BG[000]
$FG[228]%#$FX[reset] "
PS1="%{]2;$W%}%{]1;$I%}$L"
unset W I L