fix BYOBU_RUN_DIR and BYOBU_PREFIX issue

https://github.com/dustinkirkland/byobu/pull/62
https://launchpad.net/bugs/2051995 LP: #2051995
This commit is contained in:
Dustin Kirkland 2024-02-10 10:50:34 -06:00
parent 24cf51c2ad
commit 0514e53ba1
2 changed files with 8 additions and 2 deletions

7
debian/changelog vendored
View file

@ -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 <kirkland@ubuntu.com> Tue, 23 Jan 2024 09:43:10 -0600
-- Dustin Kirkland <kirkland@ubuntu.com> Sat, 10 Feb 2024 10:49:43 -0600
byobu (6.10-0ubuntu1) noble; urgency=medium

View file

@ -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() {