diff options
author | Hugues Hiegel <hugues@hiegel.fr> | 2008-08-13 16:20:56 +0200 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2008-08-13 16:20:56 +0200 |
commit | dd311b941af91e392e6504b5ec10d2b95abc38be (patch) | |
tree | fecbefd43ba33239b434fc89de1fbd6eda046c00 | |
parent | 44eaa93460f73a6c72e6c75085d129ab055f97b2 (diff) |
Cleaning up in variable namings.
-rw-r--r-- | 10_Environment.zsh | 13 | ||||
-rw-r--r-- | 12_Prompts.zsh | 2 |
2 files changed, 10 insertions, 5 deletions
diff --git a/10_Environment.zsh b/10_Environment.zsh index 970a6ce..82a9ec1 100644 --- a/10_Environment.zsh +++ b/10_Environment.zsh @@ -51,10 +51,15 @@ chars[ll]="$termcap[as]m$termcap[ae]" chars['+']="$termcap[as]n$termcap[ae]" -chars[lT]="$termcap[as]t$termcap[ae]" -chars[rT]="$termcap[as]u$termcap[ae]" -chars[bT]="$termcap[as]v$termcap[ae]" -chars[tT]="$termcap[as]w$termcap[ae]" +chars[rT]="$termcap[as]t$termcap[ae]" +chars[lT]="$termcap[as]u$termcap[ae]" +chars[uT]="$termcap[as]v$termcap[ae]" +chars[dT]="$termcap[as]w$termcap[ae]" + +chars[uA]="$termcap[as]A$termcap[ae]" +chars[dA]="$termcap[as]B$termcap[ae]" +chars[rA]="$termcap[as]C$termcap[ae]" +chars[lA]="$termcap[as]D$termcap[ae]" ## Variables d'environnement ``classiques'' diff --git a/12_Prompts.zsh b/12_Prompts.zsh index 3130aaf..766d57e 100644 --- a/12_Prompts.zsh +++ b/12_Prompts.zsh @@ -69,7 +69,7 @@ old_precmd() # Date [ "$DEBUG" = "yes" ] && echo -n " Date..." - DATE=$C_$prompt_colors[border]$_C"$chars[rT] "$C_$prompt_colors[date]$_C"%D{%a-%d-%b-%Y %H:%M:%S}"$C_$prompt_colors[border]$_C" $chars[lT]"$C_$prompt_colors[border]$_C$chars['-'] + DATE=$C_$prompt_colors[border]$_C"$chars[lT] "$C_$prompt_colors[date]$_C"%D{%a-%d-%b-%Y %H:%M:%S}"$C_$prompt_colors[border]$_C" $chars[rT]"$C_$prompt_colors[border]$_C$chars['-'] DATEEXPAND=$(expand_text "$DATE") DATESIZE=${#DATEEXPAND} [ "$DEBUG" = "yes" ] && echo |