-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
122 lines (105 loc) · 5.66 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
### =============================================================================================
### Server settings
### =============================================================================================
set -s default-terminal tmux-256color ## Settings tmux for 256 colors.
set -s set-clipboard on ## Use system clipboard?
set -s escape-time 0 ## Faster escape time.
### =============================================================================================
### Session settings
### =============================================================================================
set -g base-index 1 ## Start window numbering at 1.
set -g default-shell /bin/bash ## Define default shell.
set -g history-limit 32768 ## History Limit.
set -g mouse on ## Enable the mouse.
set -g prefix C-a ## Set Tmux prefix to C-a.
set -g renumber-windows on ## Automatically renumber windows after closing.
set -g repeat-time 1000 ## Set repeat duration to 1s.
set -g set-titles on ## Enable window titles.
set -g set-titles-string '#H:#S.#I.#P #W #T' ## Set Window titles Values.
### =============================================================================================
### Window settings
### =============================================================================================
setw -g aggressive-resize off ## Shits up the view in tmuxinator session start.
setw -g automatic-rename ## Automatically set window title.
setw -g mode-keys vi ## Enable vi keys.
setw -g pane-base-index 1 ## Set pane base index to 1.
setw -g wrap-search on ## Wrap searched after hitting rock bottom.
setw -g xterm-keys on ## Pass keys like shift+arrow, ctrl+arrows etc.
### =============================================================================================
### Activity Settings
### =============================================================================================
set -g activity-action none ## Don't show any activity.
set -g display-time 4000 ## Show me messages for longer!
set -g visual-activity off ## Don't tell me there's a change. It's annoying.
set -g visual-bell off ## Remove bells (and whistles).
set -g visual-silence off ## Don't visually alert me.
setw -g monitor-activity on ## Show the "#" symbol thingie on change.
setw -g monitor-bell off ## Show the "!" symbol thingie on bell.
setw -g monitor-silence 30 ## Show the "~" symbol thingie on change.
### =============================================================================================
### Status Bar Settings
### =============================================================================================
set -g status on
set -g status-interval 5
set -g status-justify "centre"
set -g status-left-length 120
set -g status-right-length 120
set -g status-left ""
set -g status-right ""
set -g status-left "#($TMUX_PLUGIN_MANAGER_PATH/tmux-powerline/powerline.sh left)"
set -g status-right "#[fg=green]#($TMUX_PLUGIN_MANAGER_PATH/tmux-mem-cpu-load/tmux-mem-cpu-load --colors --powerline-right --interval 5)#[default]"
# default statusbar colors.
set -g status-bg colour235 #base02
set -g status-fg colour136 #yellow
setw -g window-status-separator " | "
### =============================================================================================
### Key bindings
### =============================================================================================
# See https://unix.stackexchange.com/a/57653
unbind -a # UNBIND ALL THE KEYS!!!
### ---------------------------------------------------------------------------------------------
### General
### ---------------------------------------------------------------------------------------------
# Kill EVERYTHING!
bind q kill-pane
bind Q kill-window
bind C-q kill-session
bind M-q kill-server
# List EVERYTHING!
bind Space list-panes
bind w list-windows
bind C-? list-commands
bind ? list-keys
# Misc
bind C-r source-file ~/.tmux.conf \; display-message "Config reloaded..."
bind : command-prompt
### ---------------------------------------------------------------------------------------------
### Windows
### ---------------------------------------------------------------------------------------------
bind n new-window # Create new window.
# Move between windows using Alt-#.
bind -n M-1 select-window -t 1
bind -n M-2 select-window -t 2
bind -n M-3 select-window -t 3
bind -n M-4 select-window -t 4
bind -n M-5 select-window -t 5
bind -n M-6 select-window -t 6
bind -n M-7 select-window -t 7
bind -n M-8 select-window -t 8
bind -n M-9 select-window -t 9
bind -n M-0 select-window -t 10
### ---------------------------------------------------------------------------------------------
### Panes
### ---------------------------------------------------------------------------------------------
# Sync panes - send what you're typing to other panes.
bind C-s set-window-option synchronize-panes
# Maximize and restore a pane.
bind C-z resize-pane -Z
# Open panes in the same directory.
bind h split-window -h -c "#{pane_current_path}"
bind v split-window -v -c "#{pane_current_path}"
# Move between panes using Alt+arrows.
bind -n M-left select-pane -L
bind -n M-right select-pane -R
bind -n M-up select-pane -U
bind -n M-down select-pane -D