/
.tmux.conf
80 lines (59 loc) · 2.84 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
# -- general -------------------------------------------------------------------
set -g default-terminal "screen-256color" # colors!
setw -g xterm-keys on
# set -g prefix2 C-\ # GNU-Screen compatible prefix
# bind C-\ send-prefix -2
set-option -g status-position top # position the status bar at top of screen
set -q -g status-utf8 on # expect UTF-8 (tmux < 2.2)
setw -q -g utf8 on
set -g history-limit 99999 # boost history
# -- display -------------------------------------------------------------------
set -g base-index 1 # start windows numbering at 1
setw -g pane-base-index 1 # make pane numbering consistent with windows
setw -g automatic-rename on # rename window to reflect current program
set -g renumber-windows on # renumber windows when a window is closed
set -g set-titles on # set terminal title
#set -g set-titles-string '#h ❐ #S ● #I #W'
set -g set-titles-string '#h #S #I #W'
# Enable mouse support
set -g mouse on
# -- navigation ----------------------------------------------------------------
# create session
bind C-c new-session
# pane navigation
bind -r h select-pane -L # move left
bind -r j select-pane -D # move down
bind -r k select-pane -U # move up
bind -r l select-pane -R # move right
bind > swap-pane -D # swap current pane with the next one
bind < swap-pane -U # swap current pane with the previous one
########################################
# => Colors
########################################
# Solarized
# default statusbar colors
set-option -g status-bg colour235 #base02
set-option -g status-fg colour130 #yellow
# set-option -g status-attr default
# default window title colors
# set-window-option -g window-status-fg colour33 #base0
# set-window-option -g window-status-bg default
# set-window-option -g window-status-attr dim
# active window title colors
# set-window-option -g window-status-current-fg colour196 #orange
# set-window-option -g window-status-current-bg default
# set-window-option -g window-status-current-attr bright
# pane border
# set-option -g pane-border-fg colour235 #base02
# set-option -g pane-active-border-fg colour46 #base01
# message text
# set-option -g message-bg colour235 #base02
# set-option -g message-fg colour196 #orange
# pane number display
set-option -g display-panes-active-colour colour20 #blue
set-option -g display-panes-colour colour196 #orange
# clock
set-window-option -g clock-mode-colour colour40 #green
# window titles
set-window-option -g window-status-current-format ' #[fg=white]** #[fg=white,bold][#{window_index}] #[fg=green]#{=32:pane_current_command} #[fg=cyan]#(pwd="#{pane_current_path}"; echo ${pwd####*/}) #[fg=white]**'
set-window-option -g window-status-format '#[fg=colour244,bold][#{window_index}] #[fg=colour244]#{pane_current_command} #[fg=colour244]#(pwd="#{pane_current_path}"; echo ${pwd####*/})'