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