summaryrefslogtreecommitdiff
path: root/net:sweethome/host:paranoid/user:hugues/Environment.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2009-05-14 14:46:00 +0200
committerHugues Hiegel <hugues@hiegel.fr>2009-06-04 23:35:43 +0200
commit88cc186983054e074e13811d981582e8f31904cd (patch)
treef4705e5e1bac9be091caa767ecaacff1d0b1b18c /net:sweethome/host:paranoid/user:hugues/Environment.zsh
parent3b01e9c17d767c0e148fda1d2609ba27628f4c01 (diff)
[Sweethome] PS1_COLORS moved to host:paranoid/user:hugues
Diffstat (limited to 'net:sweethome/host:paranoid/user:hugues/Environment.zsh')
-rw-r--r--net:sweethome/host:paranoid/user:hugues/Environment.zsh19
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
+