diff --git a/debian/changelog b/debian/changelog index d73e2510..f489cd12 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ byobu (5.67) unreleased; urgency=low - * UNRELEASED + * usr/bin/byobu, usr/lib/byobu/include/constants: + - support global variable for default window name -- Dustin Kirkland Fri, 29 Nov 2013 09:46:48 -0600 diff --git a/usr/bin/byobu b/usr/bin/byobu index e3658848..d15ec96d 100755 --- a/usr/bin/byobu +++ b/usr/bin/byobu @@ -64,6 +64,9 @@ export BYOBU_BACKEND # Store the parent tty export BYOBU_TTY=$(tty) +# Get the default window name +[ -n "$BYOBU_WINDOW_NAME" ] || BYOBU_WINDOW_NAME=- + # Add a version argument for debugging purposes if [ "$#" = "1" ]; then case "$1" in @@ -110,7 +113,7 @@ case $BYOBU_BACKEND in fi fi BYOBU_PROFILE="-f $BYOBU_PREFIX/share/$PKG/profiles/tmuxrc" - DEFAULT_WINDOW="new-session -n - ${BYOBU_PREFIX}/bin/byobu-shell" + DEFAULT_WINDOW="new-session -n $BYOBU_WINDOW_NAME ${BYOBU_PREFIX}/bin/byobu-shell" sessions=$($BYOBU_BACKEND list-sessions 2>/dev/null) || true ;; screen) diff --git a/usr/lib/byobu/include/constants b/usr/lib/byobu/include/constants index 87e5bdc5..afefc54f 100755 --- a/usr/lib/byobu/include/constants +++ b/usr/lib/byobu/include/constants @@ -58,3 +58,4 @@ export BYOBU_DARK="black" export BYOBU_LIGHT="white" export BYOBU_ACCENT="#75507B" # AUBERGINE export BYOBU_HIGHLIGHT="#DD4814" # UBUNTU ORANGE +export BYOBU_WINDOW_NAME="-"