summaryrefslogtreecommitdiff
path: root/net:osn.sagem
diff options
context:
space:
mode:
Diffstat (limited to 'net:osn.sagem')
-rw-r--r--net:osn.sagem/Prompts.zsh13
-rw-r--r--net:osn.sagem/host:osnp1260077/user:hugues/Environment.zsh10
2 files changed, 21 insertions, 2 deletions
diff --git a/net:osn.sagem/Prompts.zsh b/net:osn.sagem/Prompts.zsh
new file mode 100644
index 0000000..eae5bfa
--- /dev/null
+++ b/net:osn.sagem/Prompts.zsh
@@ -0,0 +1,13 @@
+
+redisplay_prompt ()
+{
+ # Reprise du redisplay_prompt officiel + ajout du mode workset
+
+ local KERNEL_MODE
+ [ -e ../../kernel_mode.txt ] && KERNEL_MODE="$C_$color[bg-black];$color[blue]$_C `cat ../../kernel_mode.txt` $C_$prompt_colors[generic]$_C "
+
+ PS1="$AGENTS""$MAILSTAT""$ERROR""$BATTERY"$C_$prompt_colors[bar]$_C"$HBAR""$DATE
+"$C_$prompt_colors[user]$_C"%n"$C_$prompt_colors[arob]$_C"@"$C_$prompt_colors[host]$_C"%m $CURDIR$SVNREV$GITBRANCH $KERNEL_MODE"$C_$prompt_colors[dies]$_C"%#"$C_$prompt_colors[cmd]$_C" "
+}
+
+
diff --git a/net:osn.sagem/host:osnp1260077/user:hugues/Environment.zsh b/net:osn.sagem/host:osnp1260077/user:hugues/Environment.zsh
index 7c15a49..26ddb04 100644
--- a/net:osn.sagem/host:osnp1260077/user:hugues/Environment.zsh
+++ b/net:osn.sagem/host:osnp1260077/user:hugues/Environment.zsh
@@ -43,5 +43,11 @@ hash -d K:=/media/osn01001/Projets_STB
hash -d J:=/media/osn02001/Echanges
# proxy
-export http_proxy="http://190.99.3.97:3128"
-export ftp_proxy=$http_proxy
+if cmd_exists tsocks
+then
+ . tsocks -on
+else
+ export http_proxy="http://190.99.3.97:3128"
+ export ftp_proxy=$http_proxy
+fi
+