Created
January 16, 2014 02:35
-
-
Save jeremyvaught/8448876 to your computer and use it in GitHub Desktop.
I've cobbled this together from reading different tutorials and such. I'm a tmux noob, but this seems to get the job done for me so far. I run it in iTerm2
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 prefix key to Ctrl-a | |
unbind-key C-b | |
set-option -g prefix C-a | |
# tell tmux to use 256 colour terminal | |
set -g default-terminal "screen-256color" | |
# Key bindings | |
# navigate panes using jk, and ctrl+jk (no prefix) | |
bind-key -r j select-pane -t :.- | |
bind-key -r k select-pane -t :.+ | |
bind-key -r C-j select-pane -t :.- | |
bind-key -r C-k select-pane -t :.+ | |
# navigate windows using hl, and ctrl-hl (no prefix) | |
bind-key -r h select-window -t :- | |
bind-key -r l select-window -t :+ | |
bind-key -r C-h select-window -t :- | |
bind-key -r C-l select-window -t :+ | |
# swap panes | |
bind-key -r J swap-pane -D | |
bind-key -r K swap-pane -U | |
# Statusbar settings | |
# default statusbar colors | |
set -g status-fg white | |
set -g status-bg default | |
set -g status-attr default | |
# default window title colors | |
setw -g window-status-fg white | |
setw -g window-status-bg default | |
setw -g window-status-attr dim | |
# active window title colors | |
setw -g window-status-current-fg cyan | |
setw -g window-status-current-bg default | |
#setw -g window-status-current-attr bright | |
setw -g window-status-current-attr underscore | |
new-session -s dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment