-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.tmux.conf
78 lines (57 loc) · 2.66 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
set-option -g default-shell /usr/local/bin/fish
set -g default-terminal "screen-256color"
set-option -g terminal-overrides 'xterm*:smcup@:rmcup@'
set-option -sg escape-time 10
unbind C-b
set -g prefix C-s
bind C-s send-prefix
bind h select-pane -L
bind l select-pane -R
bind k select-pane -U
bind j select-pane -D
bind v split-window -h
#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"
if "[[ `tmux -V` == *1.9* ]]" 'unbind s; bind s split-window -v -c "#{pane_current_path}"'
if "[[ `tmux -V` == *1.9* ]]" 'unbind v; bind v split-window -h -c "#{pane_current_path}"'
if "[[ `tmux -V` == *1.9* ]]" 'unbind S; bind S split-window -v -p 20 -c "#{pane_current_path}"'
if "[[ `tmux -V` == *1.9* ]]" 'unbind V; bind V split-window -h -p 33 -c "#{pane_current_path}"'
# Start counting at 1
set -g base-index 1
set -g status-position top
set -g display-panes-colour white
set -g display-panes-active-colour red
set -g display-panes-time 1000
setw -g automatic-rename on
setw -g monitor-activity on
# Border Colors
set -g display-panes-colour white
set -g display-panes-active-colour red
# Enable mouse scrolling and other mousy things
set-option -g mouse on
#-------~---~----------~----------~----
# STATUS & MESSAGE
#-------~---~----------~----------~----
## Status line
set -g status-bg black
set -g status-fg white
set -g status-left-length 50
set -g status-left "#[fg=blue](#[fg=white]#H#[fg=blue]) "
set -g status-right-length 50
set -g status-right "#[fg=blue] (#[fg=magenta]%H:%M#[fg=blue])"
set -g status-justify centre
#set-window-option -g window-status-current-attr bold
#set-window-option -g window-status-current-fg red
# Clock mode
set-option -g clock-mode-colour white
set-option -g clock-mode-style 24
# Message
set-option -g message-style bg=default,fg=default
set-option -g @emulate-scroll-for-no-mouse-alternate-buffer "on"
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
set -g @plugin 'tmux-plugins/tmux-yank'