From: Silvio Rhatto Date: Wed, 26 Aug 2015 21:34:52 +0000 (-0300) Subject: Better screen matching at wscreen X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=bfbc9a97ccab5d8e63cb84c2a651e8e4f4d6db5c;p=termplex.git Better screen matching at wscreen --- diff --git a/wscreen b/wscreen index 297ab15..2d9c016 100755 --- a/wscreen +++ b/wscreen @@ -16,7 +16,7 @@ screen -wipe &> /dev/null # Session selection. if [ ! -z "$1" ]; then - if screen -ls $1 | grep -q "There is a screen on"; then + if screen -ls $1 | grep -qP "\.$1\t"; then #echo "There's already a screen called $1" #exit 1 screen -x $1