On Tue, 26 Jan 2021, at 4:51 PM, Peng Yu wrote: > I want to have an identical configure file so that it can allow use highlight > text and type command-C (Mac) or ctrl-shift-C (Linux) for copying. Basically, > I just want the normal behavior of a terminal. Could anybody let me know the > tmux code to figure this?
You might find this guide useful: https://www.seanh.cc/2020/12/27/copy-and-paste-in-tmux/ It uses the tmux-yank plugin to achieve the cross-platform behaviour. Also see my tmux config: https://github.com/seanh/tmux This doesn't bind command-c on mac. But this is the line that binds control-c on linux, you could add a similar line for mac but using command-c and pbcopy: bind -T copy-mode-vi C-c send -X copy-pipe-no-clear "xsel -i --clipboard" -- 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/b4e539ac-c1af-4313-bf8a-2f75c05e0512%40www.fastmail.com.