diff options
| author | Hsieh Chin Fan <pham@topo.tw> | 2024-09-17 11:37:32 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <pham@topo.tw> | 2024-10-05 21:07:08 +0800 |
| commit | a9386c536189f2aaf38c9e2ba674a096657ca366 (patch) | |
| tree | 6605acf1f3c0587efc1355aed3b440f48fe1354f /misc | |
| parent | 4ee76734de1d426df88a2a4791391909cd1a8597 (diff) | |
Update
Diffstat (limited to 'misc')
| -rw-r--r-- | misc/tmux.conf | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/misc/tmux.conf b/misc/tmux.conf index 0806bbf..70c3188 100644 --- a/misc/tmux.conf +++ b/misc/tmux.conf | |||
| @@ -1,21 +1,28 @@ | |||
| 1 | set -g default-terminal "tmux-256color" | 1 | set -g default-terminal "tmux-256color" |
| 2 | set -ag terminal-overrides ",xterm-256color:RGB" | 2 | set -ag terminal-overrides ",xterm-256color:RGB" |
| 3 | set -sg escape-time 0 | ||
| 3 | 4 | ||
| 5 | # Use Ctrl-G for prefix | ||
| 4 | unbind C-b | 6 | unbind C-b |
| 5 | set-option -g prefix C-g | 7 | set-option -g prefix C-g |
| 6 | bind-key C-g send-prefix | 8 | bind-key C-g send-prefix |
| 9 | |||
| 7 | set-option -gw xterm-keys on | 10 | set-option -gw xterm-keys on |
| 11 | |||
| 12 | # Tab key | ||
| 8 | bind-key -nr C-_ send-keys C-/ | 13 | bind-key -nr C-_ send-keys C-/ |
| 9 | 14 | ||
| 10 | new-session # Start a new session if none available | 15 | new-session # Start a new session if none available |
| 16 | |||
| 11 | bind N new-session | 17 | bind N new-session |
| 12 | bind-key -n C-F3 set-option -g status #Ctrl+F3 Combo | 18 | bind-key -n C-F3 set-option -g status #Ctrl+F3 Combo |
| 13 | 19 | ||
| 14 | bind k copy-mode | 20 | bind k copy-mode |
| 21 | bind-key T swap-window -t 0 | ||
| 15 | 22 | ||
| 16 | set -sg escape-time 0 | 23 | bind r source-file ~/.tmux.conf \; display-message "Config reloaded..." |
| 17 | 24 | ||
| 18 | #bind C-q select-layout even-horizontal | 25 | bind C-q select-layout even-horizontal |
| 19 | #bind C-w select-layout even-vertical | 26 | bind C-w select-layout even-vertical |
| 20 | #bind C-e select-layout main-horizontal | 27 | bind C-e select-layout main-horizontal |
| 21 | #bind C-r select-layout main-vertical | 28 | bind C-r select-layout main-vertical |