1
0
Fork 0

screen module: don't try to attach to dead screens

Removes dead screens from the list of candidate screens. Fixes issue
1253, "screen:auto-start problem with dead screens".
pull/539/merge
Preston Hunt 11 months ago committed by Indrajit Raychaudhuri
parent 085ab11646
commit f055c5070c

@ -22,7 +22,7 @@ if [[ -z "$STY" && -z "$EMACS" && -z "$VIM" ]] && ( \
session="$( session="$(
screen -list 2> /dev/null \ screen -list 2> /dev/null \
| sed '1d;$d' \ | sed '1d;$d' \
| awk '{print $1}' \ | awk '!/Dead/ {print $1}' \
| head -1)" | head -1)"
if [[ -n "$session" ]]; then if [[ -n "$session" ]]; then

Loading…
Cancel
Save