-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
54 lines (47 loc) · 1.72 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
# Configure prefix
set-option -g prefix M-a
bind-key a send-prefix
# Key binding options
set-window-option -g xterm-keys on
set-option -g mode-keys vi
set-option -g status-keys vi
set-option -g repeat-time 1
set-option -s escape-time 0
set-option -g display-panes-time 300
# Remove bindings we don't want
unbind-key %
unbind-key '"'
# Keybindings
bind-key M-a last-window
bind-key ';' select-pane -Z -t !
bind-key c new-window -c "#{pane_current_path}"
bind-key | split-window -h -c "#{pane_current_path}"
bind-key '-' split-window -v -c "#{pane_current_path}"
bind-key '_' split-window -v -c "#{pane_current_path}" -l 10
bind-key 'j' command-prompt -p "Join pane from:" "join-pane -h -s '%%'"
bind-key y display-panes \; \
command-prompt -p'Pane:' "run-shell \"tmux send-keys -F -t .%1 cd Space $(tmux display-message -p '#{pane_current_path}') Enter\""
# General config
set-option -s default-terminal 'xterm-256color'
set-option -gs allow-passthrough on
set-option -g base-index 1
set-option -g pane-base-index 1
set-option -g set-titles on
set-option -g history-limit 50000
set-option -g mouse on
set-option -g focus-events on
# Status line
set-option -g status-interval 1
set-option -g status-left ""
set-option -g status-right "#H %H:%M:%S "
# Theme
# Solarized Light
#set-option -g status-style fg=colour12,bg=colour7,reverse
#set-window-option -g window-status-current-style fg=colour10,bg=colour7,reverse
# Solarized Dark
set-option -g status-style fg=colour7,bg=colour12
set-window-option -g window-status-current-style fg=colour7,bg=colour10
# Set shell (avoids starting a login shell)
set-option -g default-command "${SHELL}"
# Quickly reload the tmux config file
bind r source-file ~/.tmux.conf \; display-message "tmux config reloaded"