Created
March 29, 2012 23:01
-
-
Save billyvg/2244699 to your computer and use it in GitHub Desktop.
Tmux conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set-option -g default-command "reattach-to-user-namespace -l zsh" | |
# bindings | |
unbind C-b | |
unbind % | |
set -g prefix C-a | |
bind-key C-a last-window | |
bind-key R source-file ~/.tmux.conf | |
# pane bindings | |
bind \ split-window -h | |
bind - split-window -v | |
bind-key k select-pane -U | |
bind-key j select-pane -D | |
bind-key h select-pane -L | |
bind-key l select-pane -R | |
bind _ resize-pane -D 5 | |
bind + resize-pane -U 5 | |
bind < resize-pane -L 5 | |
bind > resize-pane -R 5 | |
bind Escape copy-mode | |
unbind p | |
bind p paste-buffer | |
bind-key Y run-shell "tmux save-buffer - | reattach-to-user-namespace pbcopy" | |
bind-key -t vi-copy 'v' begin-selection | |
bind-key -t vi-copy 'y' copy-selection | |
# term stuff | |
set -g default-terminal "screen-256color" | |
# sane scrolling | |
set -g terminal-overrides 'xterm*:smcup@:rmcup@' | |
# use vim motion keys | |
setw -g mode-keys vi | |
# status bar | |
set -g status-bg black | |
set -g status-fg white | |
set -g status-left '#[fg=green]#S@#H' | |
set-window-option -g window-status-current-bg red | |
set -g status-right '%a %b %d, %Y %H:%M' | |
# Set window notifications | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# Automatically set window title | |
setw -g automatic-rename | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment