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

Repo aware prompt

This commit is contained in:
2014-11-27 16:36:19 +00:00
parent 02063b266b
commit a1e61b9720
3 changed files with 14 additions and 4 deletions

View File

@ -4,14 +4,14 @@ if `fancyTerm`; then
I="%m::%."
# L="$FX[bold]$FX[italic]$BG[111]$FG[239]@%m::%2~ $BG[000]
# $FG[228]%#$FX[reset] "
L="$FX[bold]$FX[italic]$BG[062]@%m::%2~ $BG[000]
$FG[220]%#$FX[reset] "
PS1="%{]2;$W%}%{]1;$I%}$L"
L='$FX[bold]$FX[italic]$BG[062]@%m::%2~$(repo_char)$BG[000]
$FG[220]%#$FX[reset] '
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 "
PS1="%B%K{blue}%F{white}[%l] %n@%m:%~ %f%k%F{yellow}%# $(repo_char)%f%b "
fi
}