forked from mathiasbynens/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
98 lines (74 loc) · 3.07 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
# act like GNU screen
unbind C-b
set -g prefix C-a
bind a send-prefix
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
#set -g default-terminal "xterm-256color"
set -g history-limit 30000
set -g status-interval 60
set-option -g default-command "reattach-to-user-namespace -l zsh"
# status config
#set -g status-utf8 on
#set -g status-position top
set -g status-fg colour15
set -g status-bg colour24
# status line left side
#set -g status-left-length 40
#set -g status-left "#[fg=colour214,bold] #S #[fg=colour45] "
# status line right side
#set -g status-right "#(~/.dotfiles/bin/tmux_battery_status) | %I:%M %p | %D "
# no more machine counting
#set -g base-index 1
#setw -g pane-base-index 1
# enable activity alerts
setw -g monitor-activity on
set -g visual-activity on
# window list colors
setw -g window-status-fg colour250
setw -g window-status-bg default
#setw -g window-status-format " #I #W "
#setw -g window-status-current-format " #W "
setw -g window-status-current-fg colour118
setw -g window-status-current-bg default
setw -g window-status-activity-attr underscore,bold
# center the window list
#set -g status-justify left
# pane colors
set -g pane-border-fg colour24
set -g pane-border-bg default
set -g pane-active-border-fg colour15
set -g pane-active-border-bg colour15
# command / message line colors
#set -g message-fg colour15
#set -g message-bg black
#set -g message-attr bright
# rebind clear screen with Ctrl-l
bind C-l send-keys 'C-l'
# reload tmux conf
bind r source-file ~/.tmux.conf \; display "Reloaded tmux.conf!"
# setup reattach-to-user-namespace for copy and paste
#set-option -g default-command "reattach-to-user-namespace -l $SHELL"
# use vim keybindings in copy mode
#setw -g mode-keys vi
set -g mouse on
# setup 'v' to begin selection as in vim
#bind -t vi-copy v begin-selection
#bind -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
# update default binding of 'enter' to also use copy-pipe
#unbind -t vi-copy Enter
#bind -t vi-copy enter copy-pipe "reattach-to-user-namespace pbcopy"
# splitting panes
bind | split-window -h
bind - split-window -v
# fast resizing (-r for repeatable)
bind -r h resize-pane -L 5
bind -r j resize-pane -D 5
bind -r k resize-pane -U 5
bind -r l resize-pane -R 5
# tmux navigator with vim (-n allows binding without tmux prefix)
#bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)vim(diff)?$' && tmux send-keys C-h) || tmux select-pane -L"
#bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)vim(diff)?$' && tmux send-keys C-j) || tmux select-pane -D"
#bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)vim(diff)?$' && tmux send-keys C-k) || tmux select-pane -U"
#bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)vim(diff)?$' && tmux send-keys C-l) || tmux select-pane -R"
#bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)vim(diff)?$' && tmux send-keys 'C-\\') || tmux select-pane -l"
set -g terminal-overrides 'xterm*:smcup@:rmcup@'