Disable screen
This commit is contained in:
parent
d3f7e2c155
commit
3468d0e8af
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user