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
commit 0514e53ba1
2 changed files with 8 additions and 2 deletions

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