|
| 1 | +# Key bindings |
| 2 | +unbind -n M-Left ; bind -n M-Left select-pane -L |
| 3 | +unbind -n M-Right ; bind -n M-Right select-pane -R |
| 4 | +unbind -n M-Up ; bind -n M-Up select-pane -U |
| 5 | +unbind -n M-Down ; bind -n M-Down select-pane -D |
| 6 | + |
| 7 | +unbind -n M-PageUp ; bind -n M-PageUp previous-window |
| 8 | +unbind -n M-PageDown ; bind -n M-PageDown next-window |
| 9 | + |
| 10 | +unbind M-Up ; bind -r M-Up resize-pane -U |
| 11 | +unbind M-Down ; bind -r M-Down resize-pane -D |
| 12 | +unbind M-Left ; bind -r M-Left resize-pane -L |
| 13 | +unbind M-Right ; bind -r M-Right resize-pane -R |
| 14 | + |
| 15 | +unbind -n M-Space ; bind -n M-Space resize-pane -Z |
| 16 | +unbind -n M-Enter ; bind -n M-Enter choose-session |
| 17 | + |
| 18 | +unbind r ; bind r source-file ~/.tmux.conf \; display "Reloaded!" |
| 19 | +unbind s ; bind s set-window-option synchronize-panes |
| 20 | + |
| 21 | +unbind S ; bind-key S command-prompt "new-session -s %1" |
| 22 | +unbind M ; bind-key M choose-session "move-window -t %1 \; attach-session -t %1" |
| 23 | + |
| 24 | +unbind -n M-1 ; bind-key -n M-1 select-window -t :1 |
| 25 | +unbind -n M-2 ; bind-key -n M-2 select-window -t :2 |
| 26 | +unbind -n M-3 ; bind-key -n M-3 select-window -t :3 |
| 27 | +unbind -n M-4 ; bind-key -n M-4 select-window -t :4 |
| 28 | +unbind -n M-5 ; bind-key -n M-5 select-window -t :5 |
| 29 | +unbind -n M-6 ; bind-key -n M-6 select-window -t :6 |
| 30 | +unbind -n M-7 ; bind-key -n M-7 select-window -t :7 |
| 31 | +unbind -n M-8 ; bind-key -n M-8 select-window -t :8 |
| 32 | +unbind -n M-9 ; bind-key -n M-9 select-window -t :9 |
| 33 | +unbind -n M-0 ; bind-key -n M-0 select-window -t :10 |
| 34 | + |
| 35 | +# For tmux 1.9 and newer : make new windows start in the same directory as the current window |
| 36 | +unbind c ; bind c new-window -c "#{pane_current_path}" |
| 37 | +unbind % ; bind % split-window -h -c "#{pane_current_path}" |
| 38 | +unbind '"' ; bind '"' split-window -v -c "#{pane_current_path}" |
| 39 | + |
| 40 | +# Status bar |
| 41 | +set-option -g status on # turn the status bar on |
| 42 | +set-option -gq status-utf8 on # set utf-8 for the status bar |
| 43 | +set-option -g status-interval 5 # set update frequencey (default 15 seconds) |
| 44 | +set-option -g status-justify centre # center window list for clarity |
| 45 | +set-option -g status-position bottom # position the status bar at bottom of screen |
| 46 | + |
| 47 | +# Powerline-style theme |
| 48 | +set -g message-command-style "bg=colour237,fg=colour249" |
| 49 | +set -g message-style "bg=colour237,fg=colour249" |
| 50 | +set -g pane-active-border-style "fg=colour150" |
| 51 | +set -g pane-border-style "fg=colour237" |
| 52 | +set -g status "on" |
| 53 | +set -g status-bg "colour238" |
| 54 | +set -g status-justify "left" |
| 55 | +set -g status-left "#[fg=colour236,bg=colour150] #S #[fg=colour150,bg=colour238,nobold,nounderscore,noitalics]" |
| 56 | +set -g status-left-length "100" |
| 57 | +set -g status-right "#[fg=colour150,bg=colour238,nobold,nounderscore,noitalics]#[fg=colour236,bg=colour150] #H " |
| 58 | +set -g status-right-length "100" |
| 59 | +setw -g window-status-activity-style "bg=colour238,fg=colour150,underscore" |
| 60 | +setw -g window-status-current-format "#[fg=colour238,bg=colour237,nobold,nounderscore,noitalics]#[fg=colour249,bg=colour237] #I | #W | #F#{?pane_synchronized,S,} #[fg=colour237,bg=colour238,nobold,nounderscore,noitalics]" |
| 61 | +setw -g window-status-format "#[fg=colour238,bg=colour238,nobold,nounderscore,noitalics]#[default] #I | #W #[fg=colour238,bg=colour238,nobold,nounderscore,noitalics]" |
| 62 | +setw -g window-status-separator "" |
| 63 | +setw -g window-status-style "bg=colour238,fg=colour150" |
0 commit comments