mirror of https://github.com/akelge/vim
Clean up of nice prompt
This commit is contained in:
parent
08d708d197
commit
5c9b609951
|
@ -1,17 +1,16 @@
|
||||||
|
|
||||||
function prompt_nice_setup {
|
function prompt_nice_setup {
|
||||||
if `fancyTerm`; then
|
if `fancyTerm`; then
|
||||||
W="::: %n at %m in %. :::"
|
title="::: %n at %m in %. :::"
|
||||||
I="%m::%."
|
prompt_='$FX[bold]$FX[italic]$BG[062]@%m::%2~$FX[reset]
|
||||||
# L="$FX[bold]$FX[italic]$BG[111]$FG[239]@%m::%2~ $BG[000]
|
$FX[bold]$(repo_char)$FG[220]%#$FX[reset] '
|
||||||
# $FG[228]%#$FX[reset] "
|
|
||||||
L='$FX[bold]$FX[italic]$BG[062]@%m::%2~$BG[000]
|
PS1="%{]2;$title%}$prompt_"
|
||||||
$(repo_char)$FG[220]%#$FX[reset] '
|
unset title prompt_
|
||||||
PS1="%{]2;$W%}%{]1;$I%}$L"
|
|
||||||
unset W I L
|
|
||||||
|
|
||||||
else
|
else
|
||||||
# We are not on xterminal
|
# We are not on xterminal
|
||||||
PS1="%B%K{blue}%F{white}[%l] %n@%m:%~ %f%k%F{yellow}%# $(repo_char)%f%b "
|
PS1='%B%K{blue}%F{white}[%l] $(repo_char)%n@%m:%~ %f%k%F{yellow}%#%f%b '
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue