-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmux.conf
More file actions
56 lines (43 loc) · 1.7 KB
/
tmux.conf
File metadata and controls
56 lines (43 loc) · 1.7 KB
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
53
54
55
56
unbind C-b
set -g prefix C-s
# set-option -g default-shell /usr/local/bin/fish
bind C-s send-prefix
bind-key r source-file ~/.tmux.conf \; display-message "~/tmux.conf reloaded"
bind-key C-j choose-tree
bind c new-window -c '#{pane_current_path}'
bind-key - split-window -v -c "#{pane_current_path}"
bind-key \\ split-window -h -c "#{pane_current_path}"
# Prefix + hjkl to select panes (vim-style)
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Smart pane switching with awareness of vim splits
# See: https://github.com/christoomey/vim-tmux-navigator
is_vim='echo "#{pane_current_command}" | grep -iqE "(^|\/)g?(view|n?vim?x?)(diff)?$"'
bind -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L"
bind -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D"
bind -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U"
bind -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R"
bind -n C-\\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l"
# escape timing is the worst
set -s escape-time 0
# I'm a human, the world is one indexed
set -g base-index 1
setw -g pane-base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
# improve colors
set -g default-terminal 'screen-256color'
# This actually looks pretty bad in dark mode rn
# set -g status-fg 'white'
# set -g status-bg 'magenta'
# remove administrative debris (session name, hostname, time) in status bar
set -g status-left ''
set -g status-right '#(tmux-host-id)'
# TPM https://github.com/tmux-plugins/tpm
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'catppuccin/tmux'
set -g @catppuccin_flavour 'mocha'
run '~/.tmux/plugins/tpm/tpm'