diff options
| author | hc <hc@email.ch> | 2026-03-23 20:16:45 +0800 |
|---|---|---|
| committer | hc <hc@email.ch> | 2026-03-23 20:16:45 +0800 |
| commit | 74cebff472e561dc275738833d2a77896e1e7cbc (patch) | |
| tree | 54c0b169c9affd7924a146a44a843022ceec40a6 /mac/tmux.conf | |
| parent | 4d691bef38bcc7e627e6267ca07bce99a2bde128 (diff) | |
move dotfiles into mac/ dir
Diffstat (limited to 'mac/tmux.conf')
| -rw-r--r-- | mac/tmux.conf | 11 |
1 files changed, 11 insertions, 0 deletions
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 @@ | |||
| 1 | # Vi mode for copy | ||
| 2 | setw -g mode-keys vi | ||
| 3 | |||
| 4 | # Mouse selection | ||
| 5 | set -g mouse on | ||
| 6 | |||
| 7 | # v to start selection, y to yank (like vim) | ||
| 8 | bind-key -T copy-mode-vi v send-keys -X begin-selection | ||
| 9 | bind-key -T copy-mode-vi y send-keys -X copy-pipe-no-clear "pbcopy" | ||
| 10 | bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-no-clear "pbcopy" | ||
| 11 | bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-no-clear "pbcopy" | ||
