diff --git a/debian/changelog b/debian/changelog index fd8826f4..362705af 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ byobu (4.14) unreleased; urgency=low - * UNRELEASED + * usr/share/byobu/profiles/tmux: + - getting tmux keybindings much closer! -- Dustin Kirkland Thu, 16 Jun 2011 16:16:29 -0500 diff --git a/usr/share/byobu/profiles/tmux b/usr/share/byobu/profiles/tmux index c26cf150..5c291bdb 100644 --- a/usr/share/byobu/profiles/tmux +++ b/usr/share/byobu/profiles/tmux @@ -20,20 +20,40 @@ # along with this program. If not, see . ############################################################################### +# Change to screen's ctrl-a escape sequence set-option -g prefix C-a +unbind-key C-b +bind-key C-a send-prefix +bind-key a send-prefix +set -s escape-time 0 +bind-key -n F1 new-window -k -t config byobu-config bind-key -n F2 new-window bind-key -n F3 previous-window +bind-key -n S-left previous-window bind-key -n F4 next-window +bind-key -n S-right next-window bind-key -n F5 source ~/.tmux.conf bind-key -n F6 detach bind-key -n F7 copy-mode +bind-key -n M-NPage copy-mode \; send-keys NPage +bind-key -n M-PPage copy-mode -u +bind-key -n F8 command-prompt -p "(rename-window)" "rename-window %%" +bind-key -n F9 new-window -a byobu-config bind-key -n S-F2 split-window -v bind-key -n C-F2 split-window -h +set-option -g set-titles on +set-option -g set-titles-string '#(whoami)@#H - #S' + set-window-option -g window-status-current-bg red set-window-option -g automatic-rename on +set-window-option -g aggressive-resize on +# Must set default-command to $SHELL, in order to not source ~/.profile +# BUG: Should *not* hardcode /bin/bash here +set -g terminal-overrides 'xterm*:smcup@:rmcup@' +set -g default-command /bin/bash set -g status-bg black set -g status-fg white set -g status-interval 1