Hide error about nested tmux sessions

This commit is contained in:
Oliver Davies 2024-08-20 18:00:00 +01:00
parent b36ca8086e
commit 13c83fb8b4

View file

@ -78,7 +78,7 @@
tmux new-session -d -c "$selected_path" -s "$session_name"
fi
tmux switch-client -t "$session_name" || tmux attach-session -t "$session_name"
tmux switch-client -t "$session_name" 2>/dev/null || tmux attach-session -t "$session_name"
}
main "$@"