Skip to content

Instantly share code, notes, and snippets.

@abh1nav
Created November 8, 2013 22:08
Show Gist options
  • Save abh1nav/7378461 to your computer and use it in GitHub Desktop.
Save abh1nav/7378461 to your computer and use it in GitHub Desktop.
Byobu keybindings
# Shamelessly stolen from https://github.com/chrisjaure/dotfiles/blob/master/.byobu/keybindings.tmux
unbind-key -n C-a
set -g prefix ^A
bind a send-prefix
# new split on top (alt+up), left (alt+left), right (alt+right), bottom (alt+down)
bind-key -n M-Up split-window -v \; swap-pane -s :. -t :.- \; select-pane -t :.-
bind-key -n M-Left split-window -h \; swap-pane -s :. -t :.- \; select-pane -t :.-
bind-key -n M-Right split-window -h
bind-key -n M-Down split-window -v
# Focus on pane click
set-option -g mouse-select-pane on
set-option -g mouse-select-window on
# Scroll your way into copy mode (scrollback buffer)
# and select text for copying with the mouse
setw -g mode-mouse on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment