-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
65 lines (54 loc) · 1.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
####################
### KEY BINDINGS ###
####################
# From http://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/
# and
# http://unix.stackexchange.com/questions/66745/tmux-remapping-keys-to-pane-on-the-left-right-top-down
# Remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# Split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# Reload config file
bind r source-file ~/.tmux.conf
# 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
# Unbind keys
unbind Up
unbind Down
unbind Left
unbind Right
unbind C-Up
unbind C-Down
unbind C-Left
unbind C-Right
######################
### DESIGN CHANGES ###
######################
# See
# http://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/
# https://coderwall.com/p/ca5cuw/customize-your-tmux
# Tabs
# Unactive: Number, name
setw -g window-status-format "#[fg=black]#[bg=green] #I #[fg=black]#[bg=green] #W "
# Unactive: Number, name
setw -g window-status-current-format "#[bg=white]#[fg=black] *#I #[fg=black,bold]#[bg=white] [#W] "
# Status bar
set-option -g allow-rename off
set -g status-fg black
set -g status-bg green
set -g status-left ""
set -g status-right-length 60
set -g status-right "%a %m-%d #[fg=black,bg=white] %H:%M"