aboutsummaryrefslogtreecommitdiffhomepage
path: root/misc
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-11-14 17:06:33 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-11-14 17:06:33 +0800
commitf88f395ab07737a4f81f0241e2250ea1b835afa5 (patch)
tree5c9b8ffd5c55cded0aac8ff375315623788cd90d /misc
parenteffe141a61e1b48adf0b4472a58f716f97a32b7b (diff)
Update
Diffstat (limited to 'misc')
-rw-r--r--misc/tmux.conf14
1 files changed, 9 insertions, 5 deletions
diff --git a/misc/tmux.conf b/misc/tmux.conf
index 70c3188..bc69b14 100644
--- a/misc/tmux.conf
+++ b/misc/tmux.conf
@@ -1,13 +1,15 @@
1# tty
1set -g default-terminal "tmux-256color" 2set -g default-terminal "tmux-256color"
2set -ag terminal-overrides ",xterm-256color:RGB" 3set -ag terminal-overrides ",xterm-256color:RGB"
3set -sg escape-time 0 4set -sg escape-time 0
5set -gw xterm-keys on
4 6
5# Use Ctrl-G for prefix 7# prefix
6unbind C-b 8unbind C-b
7set-option -g prefix C-g 9set -g prefix C-g
8bind-key C-g send-prefix
9 10
10set-option -gw xterm-keys on 11# status bar
12set-window-option -g window-status-current-style bg=yellow
11 13
12# Tab key 14# Tab key
13bind-key -nr C-_ send-keys C-/ 15bind-key -nr C-_ send-keys C-/
@@ -15,13 +17,15 @@ bind-key -nr C-_ send-keys C-/
15new-session # Start a new session if none available 17new-session # Start a new session if none available
16 18
17bind N new-session 19bind N new-session
18bind-key -n C-F3 set-option -g status #Ctrl+F3 Combo 20bind-key -n C-F3 set -g status #Ctrl+F3 Combo
19 21
20bind k copy-mode 22bind k copy-mode
21bind-key T swap-window -t 0 23bind-key T swap-window -t 0
22 24
25# config
23bind r source-file ~/.tmux.conf \; display-message "Config reloaded..." 26bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
24 27
28# layout
25bind C-q select-layout even-horizontal 29bind C-q select-layout even-horizontal
26bind C-w select-layout even-vertical 30bind C-w select-layout even-vertical
27bind C-e select-layout main-horizontal 31bind C-e select-layout main-horizontal