From 3468d0e8afb5f2973032740d4fd974cf4307a690 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Mon, 11 May 2015 17:41:22 -0400 Subject: [PATCH] Disable screen --- liquidprompt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/liquidprompt b/liquidprompt index f2b83d4..5d1c096 100755 --- a/liquidprompt +++ b/liquidprompt @@ -670,7 +670,7 @@ _lp_jobcount_color() if $_LP_ENABLE_DETACHED_SESSIONS; then local -i detached=0 - $_LP_ENABLE_SCREEN && let detached=$(screen -ls 2> /dev/null | \grep -c '[Dd]etach[^)]*)$') + #$_LP_ENABLE_SCREEN && let detached=$(screen -ls 2> /dev/null | \grep -c '[Dd]etach[^)]*)$') $_LP_ENABLE_TMUX && let detached+=$(tmux list-sessions 2> /dev/null | \grep -cv 'attached') (( detached > 0 )) && ret="${ret}${LP_COLOR_JOB_D}${detached}d${NO_COL}" fi @@ -1353,14 +1353,14 @@ _lp_reset_runtime() if [ "$LP_ENABLE_RUNTIME" = 1 ] then if "$_LP_SHELL_zsh"; then - function precmd() { + precmd() { if [ $timer ]; then export _LP_RUNTIME_SECONDS=$(($SECONDS - $timer)) unset timer fi } - function preexec() { + preexec() { export timer=${timer:-$SECONDS} } else