-
Notifications
You must be signed in to change notification settings - Fork 5
/
tmux.conf
54 lines (41 loc) · 1.31 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
bind-key -n M-Right next-window
bind-key -n M-Left previous-window
bind-key -n M-h previous-window
bind-key -n M-l next-window
# start with window 1 (instead of 0)
set -g base-index 1
# # start with pane 1
set -g pane-base-index 1
set -g default-terminal "screen-256color"
set -g status-fg white
set -g status-bg colour240
# reload ~/.tmux.conf using PREFIX r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
#
# # http://zanshin.net/2013/09/05/my-tmux-configuration/
# source ~/.powerline/tmux_powerline.conf
# if [ -f /usr/share/tmux/powerline.conf ]
# then
# source '/usr/share/tmux/powerline.conf'
# fi
if-shell "test -f ~/.tmuxline.conf && [ $CONN != \"sshd\" ]" "source ~/.tmuxline.conf"
# keep same path to new panes
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind p select-pane -t :.+ \; resize-pane -Z
set -g mouse on
set-option -g history-limit 50000
#set -g mode-mouse on
#set -g mouse-resize-pane on
#set -g mouse-select-pane on
#set -g mouse-select-window on
if-shell "test -f ~/.tmux.conf.local" "source ~/.tmux.conf.local"
#unbind C-b
#set -g prefix C-q
#bind C-q send-prefix
set-option -g default-shell /bin/zsh