]> git.r.bdr.sh - rbdr/dotfiles/blame - tmux.conf
Update prompt to show ruby & node envs
[rbdr/dotfiles] / tmux.conf
CommitLineData
05a65c3c
BB
1# Allow use of buffer
2set-option -g default-command "reattach-to-user-namespace -l zsh"
b100af91
BB
3
4#Increase the scrollback
5set -g history-limit 5000
6
7#Screen-like prefix.
8set -g prefix C-a
9bind-key C-a last-window
10
11#Better bindings for window split
12unbind % # Remove default binding since we’re replacing
13bind | split-window -h
14bind - split-window -v
15
16#Customize the status bars.
ee6d2b11
BB
17# set -g status-bg cyan
18# set -g status-fg white
19# set -g status-left-length 24
20# set -g status-left '#[fg=black]#[bg=white]#H-#S'
21# set-window-option -g window-status-current-bg red
22# set -g status-right '#[fg=black]#[bg=white]#(uptime)'
23# set -g status-right-length 70
24
d5c1c217
BB
25# Better powerline highlighting.
26set-window-option -g window-status-activity-attr bold,blink,underscore
27
b100af91
BB
28#Set Activity monitoring.
29setw -g monitor-activity on
30set -g visual-activity on
31
32# Vi keys in copy mode.
33setw -g mode-keys vi
5813c634
BB
34bind -r k run-shell 'tmux select-pane -U'
35bind -r j run-shell 'tmux select-pane -D'
36bind -r h run-shell 'tmux select-pane -L'
37bind -r l run-shell 'tmux select-pane -R'
b100af91
BB
38
39# Set color mode.
a72dc03e
BB
40set -g default-terminal "xterm-256color"
41set-option -ga terminal-overrides ",xterm-256color:Tc"
05a65c3c
BB
42
43# Powerline
44run-shell "powerline-daemon -q"
45source /Users/benbeltran/Library/Python/2.7/lib/python/site-packages/powerline/bindings/tmux/powerline.conf