Created
November 23, 2013 03:02
-
-
Save taylor/7610244 to your computer and use it in GitHub Desktop.
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 -g default-terminal "screen-256color" | |
| ## OLD | |
| #set -g prefix DC,C-b | |
| #bind-key b send-keys C-b | |
| #bind-key b send-keys C-b | |
| ## NEW | |
| #set -g prefix2 C-b | |
| #bind-key b send-prefix -2 | |
| ## tmate | |
| #set -g prefix C-a | |
| set -g prefix C-] | |
| bind-key ] send-prefix | |
| ## COMMON | |
| #bind-key DC send-prefix | |
| # Use: C-b C-b to change to last window | |
| #bind-key C-b last-window | |
| bind-key C-] last-window | |
| ##### | |
| set-window-option -g window-status-current-bg red | |
| setw -g aggressive-resize on | |
| set -g base-index 1 | |
| set -s escape-time 0 | |
| # prefix ! will split the current pane into it's own window. To join use | |
| # prefix J then give the window number at the prompt | |
| bind-key J command-prompt -p "create pane from:" "join-pane -s ':%%'" | |
| bind-key -r k select-pane -U | |
| bind-key -r j select-pane -D | |
| bind-key -r h select-pane -L | |
| bind-key -r l select-pane -R | |
| setw -g mode-keys vi | |
| #setw -g mode-mouse on | |
| #set-option -g mouse-resize-pane on | |
| set -g history-limit 10000 | |
| unbind % # Remove default binding since we’re replacing | |
| #unbind " # we use | for split | |
| bind | split-window -h | |
| bind \ split-window -h | |
| bind - split-window -v | |
| #bind " list-windows | |
| # http://jasonwryan.com/post/6279048610/tmux-copy | |
| unbind [ | |
| bind Escape copy-mode | |
| unbind p | |
| bind p paste-buffer | |
| bind-key -t vi-copy 'v' begin-selection | |
| bind-key -t vi-copy 'y' copy-selection | |
| ### | |
| setw -g monitor-activity on | |
| set -g visual-activity on | |
| #unbind-key z | |
| #bind-key z new-window -d -n tmux-zoom 'clear && echo TMUX ZOOM && read' \; swap-pane -s tmux-zoom.0 \; select-window -t tmux-zoom | |
| #unbind-key u | |
| #bind-key u last-window \; swap-pane -s tmux-zoom.0 \; kill-window -t tmux-zoom | |
| #bind m resize-pane -Z | |
| bind z resize-pane -Z | |
| bind -r < resize-pane -L 3 | |
| bind -r > resize-pane -R 3 | |
| bind -r + resize-pane -U 2 | |
| bind -r = resize-pane -D 2 | |
| #bind -r - resize-pane -D 2 | |
| #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 C-left swap-window -t -1 | |
| bind -n C-right swap-window -t +1 | |
| set -g status-utf8 on | |
| set -g set-titles-string "tmux.#I.#w" | |
| set -g renumber-windows on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment