-
Notifications
You must be signed in to change notification settings - Fork 2
/
.tmux.conf
36 lines (29 loc) · 1.09 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
# Screen-like settings
unbind C-b
set -g prefix C-a
bind-key C-a last-window
bind-key a send-key C-a
bind-key j send-key C-j
setw -g aggressive-resize on
set-window-option -g xterm-keys on
set-option -g default-shell $SHELL
set -g history-limit 30000
set -g base-index 1
#urxvt tab like window switching (-n: no prior escape seq)
bind -n S-down new-window
bind -n S-left prev
bind -n S-right next
bind -n M-C-left swap-window -t -1
bind -n M-C-right swap-window -t +1
bind-key -n C-j detach
bind-key P command-prompt -p 'save history to filename:' -I '~/tmux.history' 'capture-pane -S -32768 ; save-buffer %1 ; delete-buffer'
# Set up 256-color screen correctly
set -g update-environment 'DISPLAY SSH_ASKPASS SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY TERM'
set -g default-terminal screen
if "[[ ${TERM} =~ 256color || ${TERM} == fbterm ]]" 'set -g default-terminal screen-256color'
set -ga terminal-overrides ",xterm-256color:Tc"
# Improve some neovim compatibility
set-option -sg escape-time 10
set-option -g focus-events on
source "/home/$USER/.tmux.conf.tmuxline"
source "/home/$USER/.tmux.conf.local"