mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-14 18:57:20 -07:00
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:
parent
24cf51c2ad
commit
0514e53ba1
2 changed files with 8 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue