Skip to content

Instantly share code, notes, and snippets.

@yongjincho
Created September 7, 2015 04:10
Show Gist options
  • Save yongjincho/4c1c25a989689bacd5fd to your computer and use it in GitHub Desktop.
Save yongjincho/4c1c25a989689bacd5fd to your computer and use it in GitHub Desktop.
# prefix key
set-option -g prefix C-a
unbind-key C-b
# color
set-option -g status-bg black
set-option -g status-fg white
set-option -g status-left '#[fg=green]#S '
set-window-option -g window-status-current-bg red
# window
bind-key c new-window -c "#{pane_current_path}"
bind-key C-a last-window
# creating a pane
bind-key | split-window -h -c "#{pane_current_path}"
bind-key - split-window -v -c "#{pane_current_path}"
# changing pane sizes
bind-key -r H resize-pane -L 5
bind-key -r J resize-pane -D 5
bind-key -r K resize-pane -U 5
bind-key -r L resize-pane -R 5
# moving between panes
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# break/join a pane
bind-key > command-prompt -p "break pane:" "break-pane -dt '%%'"
bind-key < command-prompt -p "join pane:" "join-pane -s '%%'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment