diff options
author | Hugues Hiegel <hugues@hiegel.fr> | 2010-09-22 11:52:52 +0200 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2010-09-22 11:52:52 +0200 |
commit | 5721301b25dc44018d85225b93a973e292eebb47 (patch) | |
tree | c5386f2bec869cd8bb43d34455092dae41842957 /10_Environment.zsh | |
parent | 65246f791fb0ebd4c723b35077fed4c68ff3bd08 (diff) |
[Colors,Prompts] Yeah! console
Diffstat (limited to '10_Environment.zsh')
-rw-r--r-- | 10_Environment.zsh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/10_Environment.zsh b/10_Environment.zsh index ee0a20e..733254a 100644 --- a/10_Environment.zsh +++ b/10_Environment.zsh @@ -40,6 +40,7 @@ _C="$_c%}" PS1_ROOT=${PS1_ROOT:-$color[red]} PS1_USER=${PS1_USER:-$color[blue]} +PS1_YEAH="38;5;82" ## Variables d'environnement ``classiques'' # @@ -67,6 +68,12 @@ SAVEHIST=42000 export GPG_TTY=`tty` +# YeahConsole.. +if ( ps fx | grep $$ -B1 | grep -q yeahconsole ) +then + YEAHCONSOLE=true +fi + # Display guess CURRENT_DISPLAY=$(finger 2>&- | tail -n+2 | grep -E $USER'[[:blank:]]+.*[[:blank:]]+tty[0-9][[:blank:]]+($DISPLAY)' | head -n1 | cut -d'(' -f2 | cut -d')' -f1) if [ "$DISPLAY" = "" -a "$CURRENT_DISPLAY" = "" ] |