-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
90 lines (69 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
89
90
# zsh is my shell
set -g default-command /bin/zsh
set -g default-shell /bin/zsh
set-window-option -g xterm-keys on
# look nice
set -g default-terminal "screen-256color"
# don't allow the terminal to rename windows
set-window-option -g allow-rename off
# status bar
set -g status-utf8 on
set -g status-interval 60
set -g status-left-length 40
set -g status-left " #[fg=white]#S #[fg=white]#I #[fg=white]#P "
set -g status-right "#[fg=cyan] %d %b %R "
set -g status-justify centre
# display activity from other windows
setw -g monitor-activity off
set -g visual-activity off
# status bar colors
set -g status-fg colour247
set -g status-bg black
# regular window colors
setw -g window-status-fg cyan
setw -g window-status-bg default
setw -g window-status-attr dim
# current window colors
setw -g window-status-current-fg colour250
setw -g window-status-current-bg black
setw -g window-status-current-attr bright
# pane border colors
set -g pane-border-fg green
set -g pane-border-bg default
set -g pane-active-border-fg green
set -g pane-active-border-bg default
# command line colors
set -g message-fg colour250
set -g message-bg black
set -g message-attr bright
# vim bindings in copy mode
setw -g mode-keys vi
# switch prefix key to ctrl+a and turn off default ctrl+b binding
set -g prefix C-a
unbind b
# reload the conf on prefix+r
bind r source-file ~/.tmux.conf \; display "Configuration Reloaded!"
# new-window binding
bind -n C-t new-window
# easy split window bindings
# bind S split-window -h
# bind V split-window -v
# use hjkl to move between panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# easy pane resize
bind -r C-h resize-pane -L 5
bind -r C-j resize-pane -D 5
bind -r C-k resize-pane -U 5
bind -r C-l resize-pane -R 5
# use mouse for copy mode and scroll
setw -g mode-mouse on
# use mouse for active pane switching
set -g mouse-select-pane on
# resizing of panes with mouse
set -g mouse-resize-pane on
# source local conf
source-file ~/.tmux.conf.local
#set-option -g default-command "reattach-to-user-namespace -l $SHELL"