From 5721301b25dc44018d85225b93a973e292eebb47 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Wed, 22 Sep 2010 11:52:52 +0200 Subject: [Colors,Prompts] Yeah! console --- 10_Environment.zsh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '10_Environment.zsh') 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" = "" ] -- cgit v1.2.3