Enabling URL Support in macOS Terminal.app with tmux 0 ▲ Chris Wiegman 2 hours ago · Tech · hide · 0 comments I’ve been using tmux on Mac for a very long time. It’s a simple way to get proper panes in Mac’s terminal without replacing the app entirely. Of course there are replacement apps that handle a lot of this out of the box, but from iTerm to Ghostty and others, they always fall short for me in one way or another. So I stick with Terminal, and honestly, it works really well, minus the pane support. tmux fixes that, but it also overrides so much native Terminal functionality that other basic behavior can break, like clicking a URL. With a little bit of configuration in ~/.tmux.conf though, you can restore the ability to open links with a right-click. Below is the config to do just that. setw -g mouse on set -g word-separators " \t\n" bind -n MouseDown3Pane select-pane -t= \; copy-mode -M \; send-keys -X select-word \; send-keys -X copy-pipe-and-cancel "sh -c 'read -r url; case \"\$url\" in http://*|https://*) open \"\$url\";; esac'" bind -T copy-mode-vi MouseDown3Pane send-keys -X… No comments yet. Log in to reply on the Fediverse. Comments will appear here.