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