diff options
author | Hugues Hiegel <hugues.hiegel@openwide.fr> | 2009-06-05 11:11:05 +0200 |
---|---|---|
committer | Hugues Hiegel <hugues.hiegel@openwide.fr> | 2009-06-05 11:11:05 +0200 |
commit | 480e555229ff44478b9b3bdc3d2eee78c9ca8130 (patch) | |
tree | da85dcbc90d383262f576348bf9673cd9eb3bc58 /net:sweethome/host:paranoid | |
parent | 8865b771cf355eb00466e9b0f501c14f9979e144 (diff) | |
parent | bcd0823d15c93d0c6ec404860bb45aa8b4e6d283 (diff) |
Merge branch 'master' of maison:/git/zdotdir
Diffstat (limited to 'net:sweethome/host:paranoid')
-rw-r--r-- | net:sweethome/host:paranoid/user:hugues/Environment.zsh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/net:sweethome/host:paranoid/user:hugues/Environment.zsh b/net:sweethome/host:paranoid/user:hugues/Environment.zsh new file mode 100644 index 0000000..22ede24 --- /dev/null +++ b/net:sweethome/host:paranoid/user:hugues/Environment.zsh @@ -0,0 +1,19 @@ + +PS1_SUDO=${PS1_SUDO:-$color[green]} +PS1_USER_SSH=${PS1_USER_SSH:-$color[magenta]} +#PS1_USER_SCR=${PS1_USER_SCR:-$color[cyan]} +PS1_USER_SCR=$PS1_USER + +if ( [ "$SSH_TTY" != "" ] ) +then + PS1_USER=$PS1_USER_SSH +fi +if ( echo "$TERM" | grep "^screen.*$" >/dev/null ) +then + PS1_USER=$PS1_USER_SCR +fi +if ( [ ! -z "$SUDO_USER" ] ) +then + PS1_USER=$PS1_SUDO +fi + |