-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmux.conf
More file actions
29 lines (22 loc) · 728 Bytes
/
tmux.conf
File metadata and controls
29 lines (22 loc) · 728 Bytes
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
# setting the prefix from C-b to C-a
set -g prefix C-a
# free the original Ctrl-b prefix keybinding
unbind C-b
# open new window in current dir
bind c new-window -c "#{pane_current_path}"
# splitting the panes with v and h
bind v split-window -v -c "#{pane_current_path}"
bind h split-window -h -c "#{pane_current_path}"
# pane navigation
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -n M-h select-pane -L
bind -n M-l select-pane -R
# set vi mode
set-window-option -g mode-keys vi
# set window name - pwd
set-option -g status-interval 1
set-option -g automatic-rename on
set-option -g automatic-rename-format '#{b:pane_current_path}'
# fixes vim theme inside tmux
set -g default-terminal "screen-256color"