summaryrefslogtreecommitdiff
path: root/11_Prompts.zsh
diff options
context:
space:
mode:
authorhugues <hugues@a0e5b806-a6f9-0310-978d-cbce73f8a913>2007-07-25 09:28:18 +0000
committerHugues Hiegel <hugues@hiegel.fr>2008-03-07 14:15:14 +0100
commit6c36a4c698440248b7067289c23f060979e90756 (patch)
treecddafdef277d0c8d6be046ea9621d535a7d7ec61 /11_Prompts.zsh
parent761609993bb65f3bbcf2401021927d6b832235d8 (diff)
Problème de couleur de prompt root en ssh
git-svn-id: svn+ssh://hugues@maison/opt/svn/private/hugues@500 a0e5b806-a6f9-0310-978d-cbce73f8a913
Diffstat (limited to '11_Prompts.zsh')
-rw-r--r--11_Prompts.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/11_Prompts.zsh b/11_Prompts.zsh
index 11fb1f3..35c9fd8 100644
--- a/11_Prompts.zsh
+++ b/11_Prompts.zsh
@@ -18,7 +18,7 @@ PS1_USER=${PS1_USER:-$BLUE}
PS1_USER_SSH=${PS1_USER_SSH:-$MAGENTA}
GENERIC=$(print -Pn "%(! $PS1_ROOT $PS1_USER)")
-if ( [ "$SSH_TTY" != "" ] )
+normal_user && if ( [ "$SSH_TTY" != "" ] )
then
# Permet de faire une distinction rapide entre les shells locaux
# et les shells distants. C'est trop bon, mangez-en !
@@ -38,7 +38,7 @@ COLOR_HOST="0;$GENERIC"
COLOR_HIST=$VOID
COLOR_AROB="0;1;%(! $BOLD; )$GENERIC"
COLOR_DIES="0;%(! $BOLD; )"
-COLOR_DOUBLEDOT="0;%(! $VOID $GENERIC)"
+COLOR_DOUBLEDOT="0;%(! $VOID $VOID)"
COLOR_BRANCH="0;%(! $BOLD; )$GENERIC"
COLOR_BRACES="0;$CYAN"
COLOR_PAREN="0;$CYAN"