diff options
Diffstat (limited to '11_Prompts.zsh')
-rw-r--r-- | 11_Prompts.zsh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/11_Prompts.zsh b/11_Prompts.zsh index ba30e92..9436e4b 100644 --- a/11_Prompts.zsh +++ b/11_Prompts.zsh @@ -91,7 +91,7 @@ precmd () { term_title - DATE=$(date "+ %H:%M:%S %d/%b/%Y ") + DATE=$(date "+%H:%M:%S %d/%b/%Y") ERROR=%(? "$C_$COLOR_BAR$_C----" "%4>>"$C_$COLOR_ERRR$_C"%?$C_$COLOR_BAR$_C"---"%>>") ## GIT TRACKING ## @@ -122,9 +122,9 @@ precmd () ## First line of prompt : # - # -ERR-[ git svn ]----------------------- date - + # -ERR------------------------git-svn-[ date ]- # - SPACE_LEFT=$(($COLUMNS - 4 - ${#GITBRANCH} - 1 - ${#SVNREV} - 2 - ${#DATE} - 3)) + SPACE_LEFT=$(($COLUMNS - 6 - ${#GITBRANCH} - 1 - ${#SVNREV} - 2 - ${#DATE} - 2)) MY_PATH="%(!.%d.%~)" #pathsize=`print -Pn $MY_PATH` #pathsize=${#pathsize} @@ -145,7 +145,7 @@ precmd () # Affiche l'user, l'host, le tty et le pwd. Rien que ça... # Note que pour le pwd, on n'affiche que les 4 derniers dossiers pour éviter # de pourrir le fenêtre de terminal avec un prompt à rallonge. - PS1=$C_$COLOR_BAR$_C"-""$ERROR"$C_$COLOR_BAR$_C"$HBAR"$C_$COLOR_GIT$_C"$GITBRANCH"$C_$COLOR_SVN$_C"$SVNREV"$C_$COLOR_BAR$_C"-"$C_$COLOR_BRACES$_C"["$C_$COLOR_DATE$_C$DATE$C_$COLOR_BRACES$_C"]"$C_$COLOR_BAR$_C"- + PS1=$C_$COLOR_BAR$_C"-""$ERROR"$C_$COLOR_BAR$_C"$HBAR"$C_$COLOR_GIT$_C"$GITBRANCH"$C_$COLOR_BAR$_C"-"$C_$COLOR_SVN$_C"$SVNREV"$C_$COLOR_BAR$_C"-"$C_$COLOR_BRACES$_C"["$C_$COLOR_DATE$_C$DATE$C_$COLOR_BRACES$_C"]"$C_$COLOR_BAR$_C"- "$C_$COLOR_USER$_C"%n"$C_$COLOR_AROB$_C"@"$C_$COLOR_HOST$_C"%m $CURDIR "$C_$COLOR_DIES$_C"%#"$C_$VOID$_C" " } |