-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.tmux.conf
102 lines (75 loc) · 2.48 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# Frenzy's tmux config, which is totally not stolen from Hi_I'm_Bored
unbind C-Space
set-option -g prefix C-Space
# so that escapes register immidiately in vim
set -sg escape-time 0
# set mouse support, also, if you're a mouse hater... shut the fuck up :)
set-option -g -q mouse on
# extend scrollback
set-option -g history-limit 5000
# this so it could work on zsh and fish and watever shell i will use
set -g default-terminal "screen-256color"
set-option -sa terminal-overrides ",tmux-256color"
# fuck titles
set-option -g set-titles off
set -g pane-border-format "#{pane_current_path}"
set -g renumber-windows off
set-option -g allow-rename on
set -g automatic-rename on
# vim moment
setw -g mode-keys vi
# vim-like pane resizing
bind -r C-k resize-pane -U
bind -r C-j resize-pane -D
bind -r C-h resize-pane -L
bind -r C-l resize-pane -R
# vim-like pane switching
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
# set window panes to start at 1
set -g base-index 1
setw -g pane-base-index 1
# change prefix to C-a
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# and now unbind keys
unbind Up
unbind Down
unbind Left
unbind Right
unbind C-Up
unbind C-Down
unbind C-Left
setw -g aggressive-resize on
# Source
bind r source-file ~/.tmux.conf
# Split windows
bind h split-pane -h -c "#{pane_current_path}"
bind v split-pane -v -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
unbind '"'
unbind %
bind x kill-pane
bind t set status
bind-key -T copy-mode-vi 'C-h' select-pane -L
bind-key -T copy-mode-vi 'C-j' select-pane -D
bind-key -T copy-mode-vi 'C-k' select-pane -U
bind-key -T copy-mode-vi 'C-l' select-pane -R
bind-key -T copy-mode-vi 'C-p' prev
bind-key -T copy-mode-vi 'C-n' next
## styling
set-option -g status "on"
set -g status-bg '#20202a'
set -g status-fg white
set -g status-style fg=white,bg=default
set -g status-left ''
set -g status-right ''
set -g status-justify centre
set -g pane-active-border-style bg='#20202a',fg='#20202a'
set -g pane-border-style fg='#20202a'
set -g window-status-current-format "#[fg=cyan]#[fg=black]#[bg=cyan]#I #[bg=#414560]#[fg=white] #W#[fg=#414560]#[bg=#20202a] #[bg=default] #[fg=magenta]#[fg=black]#[bg=magenta]λ #[fg=white]#[bg=#414560] %a %d %b #[fg=magenta]%R#[fg=#414560]#[bg=#202020] "
set -g window-status-format "#[fg=magenta]#[fg=black]#[bg=magenta]#I #[bg=#414560]#[fg=white] #W#[fg=#414560]#[bg=#20202a] "
run-shell ~/.config/tmux/tmux-resurrect/resurrect.tmux