diff --git a/debian/changelog b/debian/changelog index 8c69861e..5a54874b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,11 @@ byobu (6.11) unreleased; urgency=medium - * UNRELEASED + * usr/share/byobu/profiles/bashrc: + - fix BYOBU_RUN_DIR and BYOBU_PREFIX issue + - https://github.com/dustinkirkland/byobu/pull/62 + - https://launchpad.net/bugs/2051995 LP: #2051995 - -- Dustin Kirkland Tue, 23 Jan 2024 09:43:10 -0600 + -- Dustin Kirkland Sat, 10 Feb 2024 10:49:43 -0600 byobu (6.10-0ubuntu1) noble; urgency=medium diff --git a/usr/share/byobu/profiles/bashrc b/usr/share/byobu/profiles/bashrc index 1455193e..cf31b46b 100644 --- a/usr/share/byobu/profiles/bashrc +++ b/usr/share/byobu/profiles/bashrc @@ -25,6 +25,9 @@ case "$TERM" in esac [ -n "$BYOBU_CHARMAP" ] || BYOBU_CHARMAP=$(locale charmap 2>/dev/null || echo) [ -z "$USER" ] && export USER=$(whoami) +[ -d "$BYOBU_PREFIX" ] || BYOBU_PREFIX="/usr" +[ -r "$BYOBU_PREFIX/lib/byobu/include/dirs" ] && . "$BYOBU_PREFIX/lib/byobu/include/dirs" + byobu_prompt_status() { local e=$?; [ $e != 0 ] && echo -e " $e "; } byobu_prompt_symbol() { [ "$USER" = "root" ] && printf "%s" "#" || printf "%s" "\$"; } byobu_prompt_runtime() {