Created
March 8, 2012 19:49
-
-
Save assaf/2002967 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 the prefix to Alt-A, also support Ctrl-B | |
| set -g prefix M-a | |
| set -g prefix2 C-b | |
| bind-key M-a send-prefix | |
| set -g mode-keys vi | |
| # Switch windows using Alt-Left/Right/Number | |
| # Select window by name using Alt-Down | |
| # Open new window using Alt-N | |
| bind -n M-Left prev | |
| bind -n M-Right next | |
| bind -n M-1 select-window -t :1 | |
| bind -n M-2 select-window -t :2 | |
| bind -n M-3 select-window -t :3 | |
| bind -n M-4 select-window -t :4 | |
| bind -n M-5 select-window -t :5 | |
| bind -n M-6 select-window -t :6 | |
| bind -n M-7 select-window -t :7 | |
| bind -n M-8 select-window -t :8 | |
| bind -n M-9 select-window -t :9 | |
| bind -n M-Down command-prompt -p index "select-window -t ':%%'" | |
| bind -n M-n new-window | |
| # Start numbering at 1 | |
| set -g base-index 1 | |
| # Allows for faster key repetition | |
| set -s escape-time 0 | |
| # Mouse support is nice | |
| set -g default-terminal "screen-256color" | |
| set -g mode-mouse on | |
| #set -g mouse-resize-pane on | |
| #set -g mouse-select-pane on | |
| set -g mouse-select-window on | |
| # not really sure what this does, but with it, the scrollwheel works inside Vim | |
| set -g mouse-utf8 on | |
| set -g terminal-overrides "xterm*:smcup@:rmcup@" | |
| set -g status-interval 1000 | |
| set -g monitor-activity on | |
| set -g visual-activity on | |
| set -g bell-action any | |
| # Keep sessions around even without clients. | |
| set -g exit-unattached off | |
| set -g destroy-unattached off | |
| set -g utf8 on | |
| # Need this to support pbcopy|pbpaste | |
| set -g default-command "reattach-to-user-namespace bash" | |
| set -g status-left "∷" | |
| set -g status-right "#T - %a %I:%M %p" | |
| # default statusbar colors | |
| set-option -g status-bg colour235 #base02 | |
| set-option -g status-fg colour136 #yellow | |
| set-option -g status-attr default | |
| # default window title colors | |
| set-window-option -g window-status-fg colour244 | |
| set-window-option -g window-status-bg default | |
| set-window-option -g window-status-attr dim | |
| # active window title colors | |
| set-window-option -g window-status-current-fg colour166 #orange | |
| set-window-option -g window-status-current-bg default | |
| set-window-option -g window-status-current-attr bright | |
| # pane border | |
| set-option -g pane-border-fg colour235 #base02 | |
| set-option -g pane-active-border-fg colour240 #base01 | |
| # message text | |
| set-option -g message-bg colour235 #base02 | |
| set-option -g message-fg colour166 #orange | |
| # pane number display | |
| set-option -g display-panes-active-colour colour33 #blue | |
| set-option -g display-panes-colour colour166 #orange | |
| # clock | |
| set-window-option -g clock-mode-colour colour64 #green |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment