-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
42 lines (31 loc) · 1.04 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
# reload tmux.conf
bind r source-file ~/.tmux.conf \; display "Reloaded"
# start window/pain index from 1
set -g base-index 1
setw -g pane-base-index 1
# new-window with the current directory open
bind c new-window -c "#{pane_current_path}"
# adding and rebinding shortcuts for split-window
bind % split-window -h -c '#{pane_current_path}'
bind | split-window -h -c '#{pane_current_path}'
bind '"' split-window -v -c '#{pane_current_path}'
bind - split-window -v -c '#{pane_current_path}'
# vim-like keybind
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# enable mouse control
set -g mouse on
# renumber windows on close
set -g renumber-windows on
# status line
set -g window-status-current-format "#[bg=colour250]#[fg=black]#I:#{pane_current_command}"
set -g window-status-format "#I:#{pane_current_command}"
# status refresh interval
set -g status-interval 1
# 256 color terminal
set -g default-terminal "xterm-256color"
# disable right click menu
unbind -n MouseDown3Pane
set-window-option -g mode-keys vi