Created
March 20, 2013 21:05
-
-
Save webframp/5208422 to your computer and use it in GitHub Desktop.
This file contains 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
# basic settings | |
set -g default-terminal "screen-256color" | |
#set -g default-terminal "xterm-256color" | |
setw -g xterm-keys on | |
set -g base-index 1 | |
set -s escape-time 0 | |
setw -g mode-mouse off | |
set -g default-command "reattach-to-user-namespace -l zsh" | |
# bindings | |
# first rebind prefix | |
unbind C-b | |
set -g prefix C-z | |
bind C-z send-prefix | |
# easily reload config | |
bind r source-file ~/.tmux.conf \; display "Reloaded!" | |
# vim like window nav | |
bind j select-pane -D | |
bind k select-pane -U | |
# and resize | |
bind -r H resize-pane -L 5 | |
bind -r J resize-pane -D 5 | |
bind -r K resize-pane -U 5 | |
bind -r L resize-pane -R 5 | |
# copy/paste | |
bind C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy" | |
bind C-v run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer" | |
bind C-g run-shell 'tmux save-buffer - | reattach-to-user-namespace gist' | |
bind C-p run-shell 'tmux save-buffer - | reattach-to-user-namespace gist -p' | |
# memorable splits | |
bind | split-window -h | |
bind - split-window -v | |
# colors | |
set -g status-bg white | |
set -g status-fg black | |
setw -g window-status-fg blue | |
setw -g window-status-bg default | |
setw -g window-status-attr dim | |
setw -g window-status-current-fg white | |
setw -g window-status-current-bg blue | |
setw -g window-status-current-attr bright | |
set -g status-right "#[fg=blue]#H %H:%M" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment