-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
66 lines (51 loc) · 2.29 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
# Lookup for tmux status
set -g status-position top
set -g default-terminal "screen-256color"
# We aren't filling up this history buffer...hopefully
set -g history-limit 100000
# Setting the escape time really low so that neovim can get us back to normal node faster
set -g escape-time 10
# Ctrl+b is derp. Long live Alt+A
unbind C-b
set -g prefix M-a
bind-key M-a send-prefix
# Window/Pane dressing
set -g pane-active-border-bg white
#set-option -g mouse-utf8 on
set -g mouse on
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
bind -n WheelDownPane select-pane -t= \; send-keys -M
bind -n C-WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M
#tmux will resize the window to the size of the smallest session for which it is the current window, rather than the smallest session to which it is attached.
set-window-option -g aggressive-resize
set-window-option -g allow-rename off
#set-option repeat-time 1000
bind-key c new-window -c "#{pane_current_path}"
bind-key '"' split-window -c "#{pane_current_path}"
bind-key % split-window -h -c "#{pane_current_path}"
# Enable Vim controls for copy mode and status line
set-window-option -g mode-keys vi
set -g status-keys vi
#Select tmux pane using Vim style movement w/o vim split integration
bind-key j select-pane -D
bind-key k select-pane -U
bind-key h select-pane -L
bind-key l select-pane -R
#Try to integrate vim/tmux split/pane movement into the same command
#Requires vim plugin: christoomey/vim-tmux-navigator
#is_vim='echo "#{pane_current_command}" | grep -iqE "(^|\/)g?(view|n?vim?x?)(diff)?$"'
#bind -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L"
#bind -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D"
#bind -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U"
#bind -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R"
#bind -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l"
#bind C-l send-keys 'C-l'
#bind C-k send-keys 'C-k'
bind-key -r M-j resize-pane -D 5
bind-key -r M-k resize-pane -U 5
bind-key -r M-h resize-pane -L 5
bind-key -r M-l resize-pane -R 5
# visual notification of activity in other windows
set-window-option -g monitor-activity off
# tmux powerline
source "/usr/share/tmux/powerline.conf"