On Fri, 29 Jan 2021, at 12:18 PM, Sean Hammond wrote: > I don't have an example for how to make a single keyboard shortcut copy > into the clipboard on both mac and linux. But I think it'd be easy > enough to write a shell script that tries to call xsel and if that > fails tries pbcopy. Then have a key binding in your tmux.conf call that > script.
Or I guess even without a shell script you could have a key binding in tmux.conf that runs both xsel and pbcopy. Each time you hit it one of the commands will fail and one of them will succeed, depending on which OS you're on. Might work :) See: https://www.seanh.cc/2020/12/28/binding-keys-in-tmux/#binding-a-key-to-run-multiple-commands-at-once -- You received this message because you are subscribed to the Google Groups "tmux-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to tmux-users+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/fee05399-760e-4ff8-aa4e-b1a3c5c8d2f8%40www.fastmail.com.