summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2008-04-09 15:40:15 +0200
committerHugues Hiegel <hugues@hiegel.fr>2008-04-09 15:49:03 +0200
commita391c258df37309765cdaab674c8b62954647286 (patch)
tree9f6e5ef222bc9788a41dfcf4674a7dff4b8e759e
parentca9828217c714b4d09f4a456d3b7f48d29d5b75c (diff)
Merge 'ow' dans 'master' / Reverts OpenWide-specifics config
Revert "Pas de gestion de l'option 'multibyte' avec zsh@openwide" commit 57ac3b75d2e6eebd65745640ac0a6ebd0122d8d4. Revert "Affichage de l'@ IP au lieu du nom de la machine (vu qu'il veut rien dire)" commit 217af2367f7a0cba677a0bbf2c130d45995b47be.
-rw-r--r--10_Environment.zsh1
-rw-r--r--12_Prompts.zsh6
-rw-r--r--20_Options.zsh3
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