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