Skip to content

Instantly share code, notes, and snippets.

@alambike
Last active August 29, 2015 14:21
Show Gist options
  • Save alambike/7c83ce7df8df0329b5f1 to your computer and use it in GitHub Desktop.
Save alambike/7c83ce7df8df0329b5f1 to your computer and use it in GitHub Desktop.
configuracion do byobu con tmux para poder usar a roda do mouse para facer scroll, e Ctrl-Left ,Right para moverse entre palabras
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
set-window-option -g xterm-keys on
unbind-key -n C-a
unbind-key -n C-Left
unbind-key -n C-Right
set -g prefix ^A
set -g prefix2 ^A
bind a send-prefix
# new window
bind-key -n C-t new-window
# new split on top (alt+up)
bind-key -n M-Up split-window -v \; swap-pane -s :. -t :.- \; select-pane -t :.-
# new split on left (alt+left)
bind-key -n M-Left split-window -h \; swap-pane -s :. -t :.- \; select-pane -t :.-
# new split on right (alt+right)
bind-key -n M-Right split-window -h
# new split on bottom (alt+down)
bind-key -n M-Down split-window -v
# Just click it
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