From 33078b953b91b100f84b6c08ad19c104fb823e87 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Mon, 7 Dec 2009 09:53:59 -0600 Subject: [PATCH] colors and set them in ~/.byobu/colors; ensure that profile gets linked to the common one --- byobu-janitor | 3 ++- debian/changelog | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/byobu-janitor b/byobu-janitor index 20973d5f..7bcf240d 100755 --- a/byobu-janitor +++ b/byobu-janitor @@ -60,6 +60,7 @@ fi # Seed the configuration [ -d "$HOME/.$PKG" ] || mkdir -p "$HOME/.$PKG" byobu-select-profile -b W -f k >/dev/null 2>&1 +[ -r "$HOME/.$PKG/profile" ] || ln -sf /usr/share/$PKG/profiles/common "$PROFILE" # Affects: Symlinks pointing to color profiles if [ -h "$PROFILE" ] && \ @@ -88,8 +89,8 @@ if [ -h "$PROFILE" ] && \ esac byobu-select-profile -b $BG -f $FG >/dev/null 2>&1 rm -f "$PROFILE" 2>/dev/null - ln -s /usr/share/$PKG/profiles/common "$PROFILE" fi + [ -s "$HOME/.$PKG/keybindings" ] || echo "source /usr/share/$PKG/keybindings/common" > "$HOME/.$PKG/keybindings" [ -r "$HOME/.$PKG/status" ] || touch "$HOME/.$PKG/status" [ -r "$HOME/.$PKG/windows" ] || touch "$HOME/.$PKG/windows" diff --git a/debian/changelog b/debian/changelog index 5a86ea1d..cc172bf6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -33,7 +33,8 @@ byobu (2.40) unreleased; urgency=low rpm/byobu.spec: get rid of the generated profiles; now, everything is handled by FOREGROUND and BACKGROUND colors, dynamically * byobu-janitor: clean up old ~/.byobu/profile symlinks; guess the user's - colors and set them in ~/.byobu/colors + colors and set them in ~/.byobu/colors; ensure that profile gets linked + to the common one * byobu-select-profile, byobu-select-profile.1: deprecate the --set option, only support --background and --foreground now; update the documentation