* usr/bin/byobu-janitor, usr/share/byobu/profiles/tmux:

- use screen keys by default (should probably make this configurable)
  - allow local overrides in local tmux.conf
This commit is contained in:
Dustin Kirkland 2011-10-06 11:18:31 -04:00
commit 3aee59d328
3 changed files with 12 additions and 7 deletions

4
debian/changelog vendored
View file

@ -1,6 +1,8 @@
byobu (4.40) unreleased; urgency=low byobu (4.40) unreleased; urgency=low
* UNRELEASED * usr/bin/byobu-janitor, usr/share/byobu/profiles/tmux:
- use screen keys by default (should probably make this configurable)
- allow local overrides in local tmux.conf
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 05 Oct 2011 18:05:32 -0400 -- Dustin Kirkland <kirkland@ubuntu.com> Wed, 05 Oct 2011 18:05:32 -0400

View file

@ -61,6 +61,7 @@ fi
[ -r "$BYOBU_CONFIG_DIR/keybindings" ] || echo "source $BYOBU_PREFIX/share/$PKG/keybindings/common" > "$BYOBU_CONFIG_DIR/keybindings" [ -r "$BYOBU_CONFIG_DIR/keybindings" ] || echo "source $BYOBU_PREFIX/share/$PKG/keybindings/common" > "$BYOBU_CONFIG_DIR/keybindings"
[ -r "$BYOBU_CONFIG_DIR/windows" ] || touch "$BYOBU_CONFIG_DIR/windows" [ -r "$BYOBU_CONFIG_DIR/windows" ] || touch "$BYOBU_CONFIG_DIR/windows"
[ -r "$HOME/.screenrc" ] || touch "$HOME/.screenrc" [ -r "$HOME/.screenrc" ] || touch "$HOME/.screenrc"
[ -r "$BYOBU_CONFIG_DIR/.tmux.conf" ] || touch "$BYOBU_CONFIG_DIR/.tmux.conf"
for f in status statusrc; do for f in status statusrc; do
if [ ! -r "$BYOBU_CONFIG_DIR/$f" ]; then if [ ! -r "$BYOBU_CONFIG_DIR/$f" ]; then
# Copy from skeleton, if possible # Copy from skeleton, if possible

View file

@ -20,16 +20,15 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
############################################################################### ###############################################################################
# Initialize environment, clean up
set-environment -g BYOBU_BACKEND tmux set-environment -g BYOBU_BACKEND tmux
new-window -d byobu-janitor new-window -d byobu-janitor
# 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 set -s escape-time 0
# Change to Screen's ctrl-a escape sequence
source /usr/share/doc/tmux/examples/screen-keys.conf
# Byobu's Keybindings
bind-key -n F1 new-window -k -t config byobu-config bind-key -n F1 new-window -k -t config byobu-config
bind-key -n F2 new-window bind-key -n F2 new-window
bind-key -n F3 previous-window bind-key -n F3 previous-window
@ -102,3 +101,6 @@ set -g status-left '#(byobu-status tmux_left)['
set -g status-right ']#(byobu-status tmux_right)' set -g status-right ']#(byobu-status tmux_right)'
set -g message-bg magenta set -g message-bg magenta
set -g message-fg white set -g message-fg white
# Allow local overrides
source $BYOBU_CONFIG_DIR/.tmux.conf