aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-08-26 18:34:52 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-08-26 18:34:52 -0300
commitbfbc9a97ccab5d8e63cb84c2a651e8e4f4d6db5c (patch)
tree79818c40557ea0fdfe773a89513b87a956dc6990
parentd6583241a245c2619aa8157acbefd22182e31ddd (diff)
downloadtermplex-bfbc9a97ccab5d8e63cb84c2a651e8e4f4d6db5c.tar.gz
termplex-bfbc9a97ccab5d8e63cb84c2a651e8e4f4d6db5c.tar.bz2
Better screen matching at wscreen
-rwxr-xr-xwscreen2
1 files changed, 1 insertions, 1 deletions
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