]> gitweb.fluxo.info Git - termplex.git/commitdiff
Error redirection on tmux ls
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 31 Aug 2017 07:12:52 +0000 (04:12 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 31 Aug 2017 07:12:52 +0000 (04:12 -0300)
shell

diff --git a/shell b/shell
index 90e3278a1deb66f6b40e5924223cc80f39f1b280..e41aa30c39e5529ee8d0531b0f88060d4b0b3872 100755 (executable)
--- a/shell
+++ b/shell
@@ -35,7 +35,7 @@ function shell_wscreen_ls {
 
 # Check if a named session exists, tmux version
 function shell_wtmux_ls {
-  tmux ls | grep -q ^$1:
+  tmux ls 2> /dev/null | grep -q ^$1:
 }
 
 # Try tmux, then screen