Fixed issue with tm command

main
Thomas Ba. 4 years ago
parent 7cd070d5be
commit 5cda627499

@ -28,7 +28,7 @@ whothefuckisusingport() {
function tm() { function tm() {
OUT="$(\tmux ls 2>/dev/null)" OUT="$(\tmux ls 2>/dev/null)"
NUM="$(echo "$OUT" | wc -l)" NUM="$(echo -n "$OUT" | wc -l)"
if [ "$NUM" -eq 0 ] ; then if [ "$NUM" -eq 0 ] ; then
\tmux -2 \tmux -2
elif [ "$NUM" -eq 1 ] ; then elif [ "$NUM" -eq 1 ] ; then

Loading…
Cancel
Save