From 74cebff472e561dc275738833d2a77896e1e7cbc Mon Sep 17 00:00:00 2001 From: hc Date: Mon, 23 Mar 2026 20:16:45 +0800 Subject: move dotfiles into mac/ dir --- mac/tmux.conf | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 mac/tmux.conf (limited to 'mac/tmux.conf') diff --git a/mac/tmux.conf b/mac/tmux.conf new file mode 100644 index 0000000..fc4b931 --- /dev/null +++ b/mac/tmux.conf @@ -0,0 +1,11 @@ +# Vi mode for copy +setw -g mode-keys vi + +# Mouse selection +set -g mouse on + +# v to start selection, y to yank (like vim) +bind-key -T copy-mode-vi v send-keys -X begin-selection +bind-key -T copy-mode-vi y send-keys -X copy-pipe-no-clear "pbcopy" +bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-no-clear "pbcopy" +bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-no-clear "pbcopy" -- cgit