From 6bffd3454347ef6b69806859622321730c2c2b65 Mon Sep 17 00:00:00 2001 From: Poil Date: Tue, 14 Aug 2012 10:36:36 +0200 Subject: [PATCH] bugfix tty grab --- liquidprompt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liquidprompt b/liquidprompt index d301d8a..6d33889 100755 --- a/liquidprompt +++ b/liquidprompt @@ -283,7 +283,7 @@ _lp_user() _lp_connection() { local THIS_TTY - THIS_TTY=$(awk -v pid=$$ '$0 ~ pid && /${WORKING_SHELL}/{ print $7 }' < <(ps aux) ) + THIS_TTY=$(awk -v pid=$$ -v wkshell=${_LP_WORKING_SHELL} '$0 ~ pid && $0 ~ wkshell { print $7 }' < <(ps aux) ) local SESS_SRC SESS_SRC=$(who | awk -v thistty="$THIS_TTY" '$0 ~ thistty { print $6 }')