diff options
author | Hugues Hiegel <hugues.hiegel@sagem.com> | 2009-03-06 15:28:03 +0100 |
---|---|---|
committer | Hugues Hiegel <hugues.hiegel@sagem.com> | 2009-03-06 15:28:14 +0100 |
commit | c279bd73eefcffca0bc032d28142f05050f40396 (patch) | |
tree | 4a53f0f00d4e39bf246f62acd993a770644b4a95 /net:osn.sagem/Prompts.zsh | |
parent | 5d86bb11e3303acc7ed57b7b2f0ad63dfc24c6f7 (diff) |
[OSNY/Prompts] shows kernel-mode when available
Diffstat (limited to 'net:osn.sagem/Prompts.zsh')
-rw-r--r-- | net:osn.sagem/Prompts.zsh | 13 |
1 files changed, 13 insertions, 0 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" " +} + + |