From 2047fa1033c71514033517c8d7ca4f454b045935 Mon Sep 17 00:00:00 2001 From: thomasba Date: Fri, 29 Oct 2021 00:44:07 +0200 Subject: [PATCH] Changed tm definition --- zsh/commands | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/commands b/zsh/commands index 9f91a3e..1f72fd2 100644 --- a/zsh/commands +++ b/zsh/commands @@ -28,7 +28,7 @@ whothefuckisusingport() { function tm() { OUT="$(\tmux ls 2>/dev/null)" - NUM="$(echo -n "$OUT" | wc -l)" + NUM="$(\tmux ls 2>/dev/null|wc -l)" if [ "$NUM" -eq 0 ] ; then \tmux -2 elif [ "$NUM" -eq 1 ] ; then