summaryrefslogtreecommitdiff
path: root/core/mac/.tmux.conf
diff options
context:
space:
mode:
authorhc <hc@email.ch>2026-03-23 20:12:32 +0800
committerhc <hc@email.ch>2026-03-23 20:12:32 +0800
commit5a7d648c17316f70e903b9b6718c972de6a9df97 (patch)
tree01a4f613ba90755c7fdec361b2b790df649b92f2 /core/mac/.tmux.conf
parent3c1ea83aabd414ff2ec2209a035994543dcfd466 (diff)
add mac dotfiles for vim and tmux
Diffstat (limited to 'core/mac/.tmux.conf')
-rw-r--r--core/mac/.tmux.conf11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/mac/.tmux.conf b/core/mac/.tmux.conf
new file mode 100644
index 0000000..fc4b931
--- /dev/null
+++ b/core/mac/.tmux.conf
@@ -0,0 +1,11 @@
1# Vi mode for copy
2setw -g mode-keys vi
3
4# Mouse selection
5set -g mouse on
6
7# v to start selection, y to yank (like vim)
8bind-key -T copy-mode-vi v send-keys -X begin-selection
9bind-key -T copy-mode-vi y send-keys -X copy-pipe-no-clear "pbcopy"
10bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-no-clear "pbcopy"
11bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-no-clear "pbcopy"