Created
January 25, 2013 20:48
-
-
Save bradylove/4637715 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
| # C-a as a prefix; similar to GNU screen | |
| set -g prefix C-a | |
| unbind C-b | |
| # Shorter command delay; apparently otherwise vim is unhappy | |
| set -sg escape-time 1 | |
| # 1-based window indexes | |
| set -g base-index 1 | |
| setw -g pane-base-index 1 | |
| # Reload .tmux.conf with prefix-r | |
| bind r source-file ~/.tmux.conf \; display "Reloaded!" | |
| # Pass C-a to applications | |
| bind C-a send-prefix | |
| # prefix-| splits vertically | |
| # prefix-- splits horizontally | |
| bind | split-window -h | |
| bind - split-window -v | |
| # Moving among panes | |
| bind h select-pane -L | |
| bind j select-pane -D | |
| bind k select-pane -U | |
| bind l select-pane -R | |
| # Resizing panes | |
| 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 | |
| # Mouse is sometimes useful | |
| setw -g mode-mouse on | |
| # .. but not for these things | |
| set -g mouse-select-pane off | |
| set -g mouse-resize-pane off | |
| set -g mouse-select-window off | |
| # 256 colors | |
| set -g default-terminal "screen-256color" | |
| # Colors | |
| set -g status-fg white | |
| set -g status-bg black | |
| setw -g window-status-fg cyan | |
| 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 red | |
| setw -g window-status-current-attr bright | |
| set -g pane-border-fg green | |
| set -g pane-border-bg black | |
| set -g pane-active-border-fg white | |
| set -g pane-active-border-bg black | |
| set -g message-fg white | |
| set -g message-bg black | |
| set -g message-attr bright | |
| # Status bar | |
| #set status-right "%H:%M %e %h %Y" | |
| #set -g status-interval 60 | |
| #set -g status-utf8 on | |
| #-------- StatusBar | |
| set -g default-terminal "screen-256color" | |
| set -g status-left-length 52 | |
| set -g status-right-length 451 | |
| set -g status-fg white | |
| set -g status-bg colour234 | |
| set -g window-status-activity-attr bold | |
| set -g pane-border-fg colour245 | |
| set -g pane-active-border-fg colour39 | |
| set -g message-fg colour16 | |
| set -g message-bg colour221 | |
| set -g message-attr bold | |
| set -g status-left '#[fg=colour235,bg=colour252,bold] ❐ #S#[fg=colour252,bg=colour238,nobold]⮀#[fg=colour245,bg=colour238,bold]#(whoami) #[fg=colour238,bg=colour234,nobold]⮀' | |
| set -g window-status-format "#[fg=white,bg=colour234] #I #W " | |
| set -g window-status-current-format "#[fg=colour234,bg=colour39]⮀#[fg=colour25,bg=colour39,noreverse,bold] #I ⮁ #W#[fg=colour39,bg=colour234,nobold]⮀" | |
| # Activity in other windows | |
| setw -g monitor-activity on | |
| # vi keys, especially for copy mode | |
| setw -g mode-keys vi | |
| unbind p | |
| bind p paste-buffer | |
| bind -t vi-copy 'v' begin-selection | |
| bind -t vi-copy 'V' begin-selection | |
| bind -t vi-copy 'y' copy-selection | |
| # Maximizing panes | |
| unbind Up | |
| bind Up new-window -d -n tmp \; swap-pane -s tmp.1 \; select-window -t tmp | |
| unbind Down | |
| bind Down last-window \; swap-pane -s tmp.1 \; kill-window -t tmp | |
| # # OS X keyboard | |
| # set -g default-command "reattach-to-user-namespace -l /usr/local/bin/zsh" | |
| # OS X copying | |
| bind C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy" | |
| bind C-v run "tmux set-buffer \"$(reattach-to-user-namespace pbpaste)\"; tmux paste-buffer" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment