* usr/bin/byobu-ctrl-a, usr/bin/byobu-janitor: LP: #882435

- use BYOBU_PREFIX in a couple of places to allow better portability
This commit is contained in:
Dustin Kirkland 2011-11-09 17:48:45 -06:00
commit 5915972abf
3 changed files with 6 additions and 4 deletions

2
debian/changelog vendored
View file

@ -81,6 +81,8 @@ byobu (4.47) unreleased; urgency=low
- use printf instead of "echo -n" for portability to Mac OSX
* experimental/byobu-classroom: LP: #882813
- fix minor use $SED
* usr/bin/byobu-ctrl-a, usr/bin/byobu-janitor: LP: #882435
- use BYOBU_PREFIX in a couple of places to allow better portability
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 08 Nov 2011 19:16:15 -0600

View file

@ -75,7 +75,7 @@ case "$bind_to" in
echo 'escape "^Aa"' >> "$keybindings"
echo 'register x "^A"' >> "$keybindings"
echo 'bindkey "^A"' >> "$keybindings"
echo 'source /usr/share/doc/tmux/examples/screen-keys.conf' > "$keybindings.tmux"
echo "source \$BYOBU_PREFIX/share/doc/tmux/examples/screen-keys.conf" > "$keybindings.tmux"
echo "INFO: ctrl-a will now operate in GNU Screen mode"
break
;;

View file

@ -56,9 +56,9 @@ fi
# Seed the configuration
# Setup initial local user configuration
[ -r "$BYOBU_CONFIG_DIR/color" ] || printf "BACKGROUND=k\nFOREGROUND=w\nMONOCHROME=0" > "$BYOBU_CONFIG_DIR/color"
[ -r "$BYOBU_CONFIG_DIR/profile" ] || echo "source $BYOBU_PREFIX/share/$PKG/profiles/common" > "$BYOBU_CONFIG_DIR/profile"
[ -r "$BYOBU_CONFIG_DIR/profile.tmux" ] || echo "source-file $BYOBU_PREFIX/share/$PKG/profiles/tmux" > "$BYOBU_CONFIG_DIR/profile.tmux"
[ -r "$BYOBU_CONFIG_DIR/keybindings" ] || echo "source $BYOBU_PREFIX/share/$PKG/keybindings/common" > "$BYOBU_CONFIG_DIR/keybindings"
[ -r "$BYOBU_CONFIG_DIR/profile" ] || echo "source \$BYOBU_PREFIX/share/$PKG/profiles/common" > "$BYOBU_CONFIG_DIR/profile"
[ -r "$BYOBU_CONFIG_DIR/profile.tmux" ] || echo "source \$BYOBU_PREFIX/share/$PKG/profiles/tmux" > "$BYOBU_CONFIG_DIR/profile.tmux"
[ -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 "$HOME/.screenrc" ] || touch "$HOME/.screenrc"
[ -r "$BYOBU_CONFIG_DIR/.tmux.conf" ] || touch "$BYOBU_CONFIG_DIR/.tmux.conf"