diff options
-rw-r--r-- | 10_Environment.zsh | 1 | ||||
-rw-r--r-- | 12_Prompts.zsh | 6 | ||||
-rw-r--r-- | 20_Options.zsh | 3 |
3 files changed, 6 insertions, 4 deletions
diff --git a/10_Environment.zsh b/10_Environment.zsh index ed0312d..52d72f5 100644 --- a/10_Environment.zsh +++ b/10_Environment.zsh @@ -52,5 +52,4 @@ HISTFILE=$ZDOTDIR/.history.$USER.$HOSTNAME # Pour éviter les conflits de conf HISTSIZE=42000 SAVEHIST=42000 -LOCALIP=$(/sbin/ifconfig| grep adr: | awk '/192.168.3/ { print $2 } ' | cut -d: -f2) diff --git a/12_Prompts.zsh b/12_Prompts.zsh index 971cfef..c8c0eca 100644 --- a/12_Prompts.zsh +++ b/12_Prompts.zsh @@ -68,7 +68,7 @@ old_precmd() # Date [ "$DEBUG" = "yes" ] && echo -n " Date..." - DATE=$C_$prompt_colors[braces]$_C"[ "$C_$prompt_colors[date]$_C"%D{%d-%m-%Y %H:%M:%S}"$C_$prompt_colors[braces]$_C" ]"$C_$prompt_colors[bar]$_C"-" + DATE=$C_$prompt_colors[braces]$_C"[ "$C_$prompt_colors[date]$_C"%D{%a-%d-%b-%Y %H:%M:%S}"$C_$prompt_colors[braces]$_C" ]"$C_$prompt_colors[bar]$_C"-" DATEEXPAND=$(expand_text "$DATE") DATESIZE=${#DATEEXPAND} [ "$DEBUG" = "yes" ] && echo @@ -123,7 +123,7 @@ old_precmd() PATHSIZE=${#PATHSIZE} [ "$DEBUG" = "yes" ] && echo [ "$DEBUG" = "yes" ] && echo -n " Resize path / gitbranch..." - spaceleft=`print -Pn "%n@$LOCALIP $ ls -laCdtrux $(expand_text "$DATE")"` + spaceleft=`print -Pn "%n@%m $ ls -laCdtrux $(expand_text "$DATE")"` spaceleft=$(($COLUMNS - ${#spaceleft})) #minimalpathsize=`print -Pn "../%1~"` #minimalpathsize=${#minimalpathsize} @@ -161,7 +161,7 @@ old_precmd() # 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="$MAILSTAT""$ERROR"$C_$prompt_colors[bar]$_C"$HBAR""$DATE -"$C_$prompt_colors[user]$_C"%n"$C_$prompt_colors[arob]$_C"@"$C_$prompt_colors[host]$_C"$LOCALIP $CURDIR$SVNREV$GITBRANCH "$C_$prompt_colors[dies]$_C"%#"$C_$prompt_colors[cmd]$_C" " +"$C_$prompt_colors[user]$_C"%n"$C_$prompt_colors[arob]$_C"@"$C_$prompt_colors[host]$_C"%m $CURDIR$SVNREV$GITBRANCH "$C_$prompt_colors[dies]$_C"%#"$C_$prompt_colors[cmd]$_C" " } diff --git a/20_Options.zsh b/20_Options.zsh index ca0fb85..f694bdf 100644 --- a/20_Options.zsh +++ b/20_Options.zsh @@ -75,3 +75,6 @@ unsetopt Prompt_Cr setopt Auto_Pushd setopt Pushd_Ignore_Dups setopt Glob + +## Gestion de l'UTF-8 !! +setopt MultiByte |