-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
57 lines (42 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
55
56
57
if-shell 'test -z "$POWERLINE_CONFIG_COMMAND"' 'set-environment -g POWERLINE_CONFIG_COMMAND powerline-config'
source "/usr/local/lib/python3.5/dist-packages/powerline/bindings/tmux/powerline.conf"
run-shell -b "powerline-daemon -q; exit 0"
run-shell 'eval $POWERLINE_CONFIG_COMMAND tmux setup'
setw -g mode-keys vi
set -g bell-action any
# Speed up ESC behavior in Vim!
set -s escape-time 0
# colors
set -g default-terminal "screen-256color"
#set-window-option -g automatic-rename off
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf
# Change pane swap keys
unbind x
bind x swap-pane -D
# quick pane cycling
unbind ^A
bind ^A select-pane -t :.+
# start window numbering at 1 for easier switching
set-option -g base-index 1
set-window-option -g pane-base-index 1
# Easy splitting
bind-key - split-window
bind-key = split-window -h
# hjkl pane traversal
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
##########################################################
# The following is a trick for nested TMUX control!
# ########################################################
# remap prefix to Control + a
unbind C-b
set -g prefix C-a
bind C-a send-prefix
bind -n S-up \
set -qg prefix C-b
bind -n S-down \
set -qg prefix C-a