-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmux.conf
More file actions
49 lines (37 loc) · 1.5 KB
/
tmux.conf
File metadata and controls
49 lines (37 loc) · 1.5 KB
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
# Set prefix
unbind C-b # unbind origin prefix [Ctrl]+[b]
set -g prefix C-a # assign new prefix [Ctrl]+[a] (better to set [Caps Lock] to [Ctrl])
# Set [R] to reload .tmux.conf
bind R source-file ~/.tmux.conf; display-message "[!] Reloading ~/.tmux.conf..."
# Turn on mouse control [steal from Rintaro Okamura (https://github.com/rinx)]
# set-option -g mouse on
# bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e'"
set-option -g mouse off
# Vim-like settings
setw -g mode-keys vi # h,j,k,l movement
bind-key C-a copy-mode
# Use default terminal color scheme
set -g default-terminal "screen-256color"
# Set the color of the split divider to red
set -g pane-active-border-fg red
# Allows for faster key repetition
set -sg escape-time 1
# Start numbering at 1 for both window and pane
set -g base-index 1
setw -g pane-base-index 1
# Use | and - for horizontal and vertical split
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
# Use vim h,j,k,l to select pane left,down,up,right
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Use vim H,J,K,L to resize pane left,down,up,right
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
bind-key X kill-pane
run-shell "powerline-daemon -q"
source "$CONDA_PREFIX/lib/python3.7/site-packages/powerline/bindings/tmux/powerline.conf"