From e4f01acf75b328287c9c0becb3ef91a09ebfb5bc Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 31 Aug 2017 04:12:52 -0300 Subject: Error redirection on tmux ls --- shell | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell b/shell index 90e3278..e41aa30 100755 --- 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 -- cgit v1.2.3