Clean up of nice prompt

This commit is contained in:
Andrea Mistrali 2014-11-28 13:11:14 +00:00
parent 08d708d197
commit 5c9b609951
1 changed files with 8 additions and 9 deletions

View File

@ -1,17 +1,16 @@
function prompt_nice_setup {
if `fancyTerm`; then
W="::: %n at %m in %. :::"
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]
$(repo_char)$FG[220]%#$FX[reset] '
PS1="%{]2;$W%}%{]1;$I%}$L"
unset W I L
title="::: %n at %m in %. :::"
prompt_='$FX[bold]$FX[italic]$BG[062]@%m::%2~$FX[reset]
$FX[bold]$(repo_char)$FG[220]%#$FX[reset] '
PS1="%{]2;$title%}$prompt_"
unset title prompt_
else
# 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
}