-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.tmux.conf
88 lines (68 loc) · 2.06 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
# Set the prefix to C-Space
unbind C-b
set -g prefix C-Space
bind-key Space send-prefix
bind-key C-Space last-window
# start window indexing at one instead of zero
set -g base-index 1
set-window-option -g pane-base-index 1
#supposedly fixes pausing in vim
set-option -sg escape-time 1
#set -g mode-mouse on
set -g mouse on
#set -g mouse-utf8 on
#set -g mouse-utf8 off
#setw -g mouse-select-window on
#setw -g mouse-select-pane on
#setw -g mouse-resize-pane on
setw -g mode-keys vi
setw -g status-keys vi
#set -g utf8
#set-window-option -g utf8 on
setw -g xterm-keys on
set -g default-terminal "screen-256color"
# tell Tmux that outside terminal supports true color
set -sa terminal-overrides ",xterm-256color*:Tc"
setw -g aggressive-resize on
# Bigger history
set -g history-limit 10000
#### Status Bar and Colors ####
# default statusbar colors
set -g status-style fg=blue,bg=default,default
# default window title colors
setw -g window-status-style fg=red,bg=default,dim
# active window title colors
#setw -g window-status-current-attr bright
setw -g window-status-current-style fg=cyan,bg=default,underscore
# command/message line colors
set -g message-style fg=white,bg=black,bright
##################################
# Key bindings
bind-key R source-file ~/.tmux.conf
# navigate panes using hjkl
bind-key -n M-j select-pane -D
bind-key -n M-k select-pane -U
bind-key -n M-h select-pane -L
bind-key -n M-l select-pane -R
# Navigate windows
bind-key -n M-PageDown select-window -t :+
bind-key -n M-PageUp select-window -t :-
# swap panes
bind-key -r J swap-pane -D
bind-key -r K swap-pane -U
bind o split-window -v
bind e split-window -h
# maximize pane with x
unbind-key C-z
bind-key x resize-pane -Z
# Vi-like copy-paste
unbind [
bind m copy-mode
unbind p
bind p paste-buffer
#bind-key -t vi-copy 'v' begin-selection
bind-key -T copy-mode-vi v send -X begin-selection
#bind-key -t vi-copy 'y' copy-pipe 'xclip -in -selection clipboard'
bind-key -T copy-mode-vi y send -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
# quick view of processes
bind-key "`" split-window "exec htop"