-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
52 lines (38 loc) · 2.08 KB
/
.tmux.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'rose-pine/tmux'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
bind-key w choose-tree -Zw -F '#{?pane_format,#[fg=magenta]#{pane_current_command}#[fg=default],#{?window_format,(#{window_panes} pane#{?#{>:#{window_panes},1},s,}) #[fg=green]#{b:pane_current_path}#[fg=blue]#{window_flags}#[fg=default],#{?session_format,(#{session_windows} window#{?#{>:#{session_windows},1},s,})#{?session_grouped, (group #{session_group}: #{session_group_list}),}#[fg=red]#{?session_attached, (attached),}#[fg=default],}}}'
bind-key s choose-tree -Zs -F '#{?pane_format,#[fg=magenta]#{pane_current_command}#[fg=default],#{?window_format,(#{window_panes} pane#{?#{>:#{window_panes},1},s,}) #[fg=green]#{b:pane_current_path}#[fg=blue]#{window_flags}#[fg=default],#{?session_format,(#{session_windows} window#{?#{>:#{session_windows},1},s,})#{?session_grouped, (group #{session_group}: #{session_group_list}),}#[fg=red]#{?session_attached, (attached),}#[fg=default],}}}'
unbind '"'
unbind '%'
bind-key '-' split-window -v -c '#{pane_current_path}'
bind-key '\' split-window -h -c '#{pane_current_path}'
bind-key '=' resize-pane -Z
bind-key -n S-Left swap-window -d -t -1
bind-key -n S-Right swap-window -d -t +1
bind-key -r '{' swap-pane -U
bind-key -r '}' swap-pane -D
bind-key '?' list-keys
bind-key M-0 select-layout -o
bind-key -r h select-pane -L
bind-key -r j select-pane -D
bind-key -r k select-pane -U
bind-key -r l select-pane -R
bind-key -r t last-window
bind-key -T copy-mode-vi v send -X begin-selection
bind-key -T copy-mode-vi y send -X copy-pipe-and-cancel 'pbcopy'
set-option -g base-index 1
set-option -g pane-base-index 1
set-option -g renumber-windows on
set -g @rose_pine_variant 'main'
set -g @rose_pine_date_time '%Y-%m-%d %H:%M:%S'
set -g @rose_pine_show_pane_directory 'on'
set-window-option -g main-pane-width 67%
set-window-option -g main-pane-height 50%
set-option -g status-keys vi
set-window-option -g mode-keys vi
set-option -g default-terminal 'xterm-256color'
run -b '~/.tmux/plugins/tpm/tpm'