]> gitweb.fluxo.info Git - termplex.git/commitdiff
Better screen matching at wscreen
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 26 Aug 2015 21:34:52 +0000 (18:34 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 26 Aug 2015 21:34:52 +0000 (18:34 -0300)
wscreen

diff --git a/wscreen b/wscreen
index 297ab154b09cb73d32db24994b4c980ed6063ca9..2d9c0165111af88f2fe8227391494e2390e06d07 100755 (executable)
--- 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