mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 05:53:22 -07:00
bashrc: export BYOBU_RUN_DIR and BYOBU_PREFIX
This is to address https://launchpad.net/bugs/2051995 where users will see the phrase bash: /timer.6217: Permission denied Whenever any command is ran. This occurs because byobu-prompt uses this bashrc and tries to write to $BYOBU_RUN_DIR/timer.$$ but BYOBU_RUN_DIR is not yet defined. This caused byobu to try to write to /timer.$$ which fails as a regular user. Also added BYOBU_PREFIX in-case the user sets BYOBU_DISTRO to Ubuntu. Signed-off-by: Mitchell Dzurick <mitchell.dzurick@canonical.com>
This commit is contained in:
parent
24cf51c2ad
commit
7b6a31d40f
1 changed files with 2 additions and 0 deletions
|
@ -25,6 +25,8 @@ case "$TERM" in
|
|||
esac
|
||||
[ -n "$BYOBU_CHARMAP" ] || BYOBU_CHARMAP=$(locale charmap 2>/dev/null || echo)
|
||||
[ -z "$USER" ] && export USER=$(whoami)
|
||||
[ -z "$BYOBU_RUN_DIR" ] && export BYOBU_RUN_DIR=/tmp
|
||||
[ -z "$BYOBU_PREFIX" ] && export BYOBU_PREFIX=/usr
|
||||
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