From 5cc46c68d83683cabb409a804d52f8d2137792cc Mon Sep 17 00:00:00 2001 From: alexbel Date: Wed, 26 Feb 2014 15:04:45 -0500 Subject: [PATCH] Fix incorrect detection of tmux output if tmux is not installed --- liquidprompt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liquidprompt b/liquidprompt index 568576a..4197258 100755 --- a/liquidprompt +++ b/liquidprompt @@ -641,7 +641,7 @@ _lp_jobcount_color() local running=$(( $(jobs -r | wc -l) )) local stopped=$(( $(jobs -s | wc -l) )) local n_screen=$(screen -ls 2> /dev/null | grep -c '[Dd]etach[^)]*)$') - local n_tmux=$(tmux list-sessions 2> /dev/null | grep -cv attached) + local n_tmux=$(tmux list-sessions 2> /dev/null | grep -cvE 'attached|command not found') local detached=$(( $n_screen + $n_tmux )) local m_detached="d" local m_stop="z"