/
.tmux.conf
65 lines (59 loc) · 2.86 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
# no-login shell
set -sg escape-time 0
set -g default-shell $SHELL
# !!! Note: make sure you have `reattach-to-user-namespace` installed (i.e. `brew install reattach-to-user-namespace`)
# set -g default-command "reattach-to-user-namespace -l ${SHELL}"
#set -g default-terminal "screen-256color"
set -g default-terminal "xterm-256color"
# status bar colors etc
#set-option -g status-bg black
set-option -g status-fg blue
set-option -g status-interval 5
set-option -g visual-activity on
set-option -g renumber-windows on
set-window-option -g monitor-activity on
set-window-option -g window-status-current-style "fg=white"
# command prefix
unbind C-b
set -g prefix 'C-\'
bind 'C-\' send-prefix
#set -g prefix M-a
#bind M-a send-prefix
#set -g prefix C-a
# start window indexing at one instead of zero
set -g base-index 1
unbind % # remove default binding since replacing
bind h split-window -h -c "#{pane_current_path}"
bind v split-window -v -c "#{pane_current_path}"
bind -n C-k send-keys -R \; send-keys C-l \; clear-history
bind R source-file ~/.tmux.conf \; display-message "Config reloaded..."
setw -g mode-keys vi
bind-key -T copy-mode-vi v send-keys -X begin-selection
# !!! Note: make sure you have `reattach-to-user-namespace` installed (i.e. `brew install reattach-to-user-namespace`)
# bind-key -T copy-mode-vi y send-keys -X copy-pipe "reattach-to-user-namespace pbcopy"
bind-key -T copy-mode-vi y send-keys -X copy-pipe "pbcopy"
# bind-key -t vi-copy 'y' copy-selection
# statusbar settings - adopted from tmuxline.vim and vim-airline - Theme: murmur
set -g history-limit 9999999
set -g status-justify "left"
set -g status "on"
set -g status-left-style "none"
set -g message-command-style "fg=colour144,bg=colour237"
set -g status-right-style "none"
set -g pane-active-border-style "fg=colour27"
#set -g utf8
#set -g status-utf8 "on"
set -g status-style "bg=colour234,none"
set -g message-style "fg=colour144,bg=colour237"
set -g pane-border-style "fg=default"
set -g pane-active-border-style "fg=green"
#set -g pane-active-border-style "bg=default"
set -g status-right-length "100"
set -g status-left-length "100"
setw -g window-status-activity-style "fg=colour27,bg=colour234,none"
setw -g window-status-separator ""
setw -g window-status-style "fg=colour39,bg=colour234,none"
set -g status-left "#[fg=colour15,bg=colour27] #S #[fg=colour27,bg=colour234,nobold,nounderscore,noitalics]"
set -g status-right "#[fg=colour237,bg=colour234,nobold,nounderscore,noitalics]#[fg=colour144,bg=colour237] %d.%m.%Y %H:%M #[fg=colour27,bg=colour237,nobold,nounderscore,noitalics]#[fg=colour15,bg=colour27] #h "
setw -g window-status-format "#[fg=colour39,bg=colour234] #I #[fg=colour39,bg=colour234] #W "
setw -g window-status-current-format "#[fg=colour234,bg=colour237,nobold,nounderscore,noitalics]#[fg=colour144,bg=colour237] #I #[fg=colour144,bg=colour237] #W #[fg=colour237,bg=colour234,nobold,nounderscore,noitalics] "