Disable screen

This commit is contained in:
Austen Adler 2015-05-11 17:41:22 -04:00
parent d3f7e2c155
commit 3468d0e8af

View File

@ -670,7 +670,7 @@ _lp_jobcount_color()
if $_LP_ENABLE_DETACHED_SESSIONS; then if $_LP_ENABLE_DETACHED_SESSIONS; then
local -i detached=0 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') $_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}" (( detached > 0 )) && ret="${ret}${LP_COLOR_JOB_D}${detached}d${NO_COL}"
fi fi
@ -1353,14 +1353,14 @@ _lp_reset_runtime()
if [ "$LP_ENABLE_RUNTIME" = 1 ] if [ "$LP_ENABLE_RUNTIME" = 1 ]
then then
if "$_LP_SHELL_zsh"; then if "$_LP_SHELL_zsh"; then
function precmd() { precmd() {
if [ $timer ]; then if [ $timer ]; then
export _LP_RUNTIME_SECONDS=$(($SECONDS - $timer)) export _LP_RUNTIME_SECONDS=$(($SECONDS - $timer))
unset timer unset timer
fi fi
} }
function preexec() { preexec() {
export timer=${timer:-$SECONDS} export timer=${timer:-$SECONDS}
} }
else else