* usr/lib/byobu/include/dirs: LP: #899271

- allow explicit BYOBU_CONFIG_DIR selection in ~/.byoburc
This commit is contained in:
Dustin Kirkland 2011-12-08 11:27:43 -06:00
commit 7fb5da7e57
2 changed files with 5 additions and 1 deletions

2
debian/changelog vendored
View file

@ -26,6 +26,8 @@ byobu (4.53) unreleased; urgency=low
correct prefix
* usr/lib/byobu/include/dirs: LP: #780081
- use ~/.local/share/byobu as BYOBU_CONFIG_DIR, if it happens to exist
* usr/lib/byobu/include/dirs: LP: #899271
- allow explicit BYOBU_CONFIG_DIR selection in ~/.byoburc
[ Andrew McCarthy ]
* usr/bin/byobu-status: LP: #898801

View file

@ -25,7 +25,9 @@ PKG="byobu"
[ -n "$BYOBU_PREFIX" ] || BYOBU_PREFIX="/usr"
# Create and export the user configuration directory
if [ -d "$XDG_CONFIG_HOME" ]; then
if [ -d "$BYOBU_CONFIG_DIR" ]; then
export BYOBU_CONFIG_DIR="$BYOBU_CONFIG_DIR"
elif [ -d "$XDG_CONFIG_HOME" ]; then
# Use XDG, as some users insist on such nonsense :-)
export BYOBU_CONFIG_DIR="$XDG_CONFIG_HOME/$PKG"
elif [ -d "$HOME/.local/share/$PKG" ]; then