forked from henrik/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tmux.conf
executable file
·43 lines (32 loc) · 1.17 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
if-shell 'test "$(uname)" = "Darwin"' 'source ~/.tmux-osx.conf'
# Full color for Vim.
set -g default-terminal "screen-256color"
# Make shift+arrows, ctrl+arrows etc work in Vim.
set -g xterm-keys on
# See if this fixes slow ESC issues.
# http://unix.stackexchange.com/questions/23138/esc-key-causes-a-small-delay-in-terminal-due-to-its-alt-behavior
set -s escape-time 0
# Start window and pane indices at 1.
set -g base-index 1
set -g pane-base-index 1
# Hold Opt in iTerm2 and mouse mode won't mess with text selection.
set -g mouse on
# Status bar styling and content.
set -g status-bg black
set -g status-fg white
set -g status-left '#S'
# Highlight the active window in the status bar.
set-window-option -g window-status-current-style bg=yellow,fg=black
# Don't prompt to kill panes/windows.
bind-key x kill-pane
bind-key & kill-window
# Cycle panes.
bind b select-pane -t :.+
bind C-b select-pane -t :.+
# Reload tmux conf.
unbind r
bind r source-file ~/.tmux.conf\; display "Reloaded conf."
# Clear tmux scrollback history.
# Use C-l in bash to clear the shell:
# http://stackoverflow.com/questions/10543684/how-can-i-clear-scrollback-buffer-in-tmux
bind -n C-k clear-history