Now that we have BASHER_PREFIX and such, it'd be nice to be able to set it, especially systemwide. Perhaps we could have basher source /etc/basher.conf and ~/.basherrc if they exist, in that order. Then people like me could have a systemwide /etc/basher.conf that said something like:
if test `id -u` == "0"; then
# customize these to sysadmin taste
BASHER_PREFIX=/usr/local
BASHER_PACKAGES_PATH=/usr/local/basher-packages
else
# also customized to taste; can be overridden by user in ~/.basherrc
BASHER_PREFIX="$HOME"
BASHER_PACKAGES_PATH=~/.basher-packages
fi
This would let a globally-installed basher work for both end users and root; sudo basher install would install a package globally, and regular basher install would work locally. This would be a big step towards making basher usable as a system-level packaging tool, rather than just a personal one. (i.e., there's just one global install of basher as a program, even if individual users and the system have their own package directories.)
Now that we have
BASHER_PREFIXand such, it'd be nice to be able to set it, especially systemwide. Perhaps we could have bashersource /etc/basher.confand~/.basherrcif they exist, in that order. Then people like me could have a systemwide/etc/basher.confthat said something like:This would let a globally-installed basher work for both end users and root;
sudo basher installwould install a package globally, and regularbasher installwould work locally. This would be a big step towards makingbasherusable as a system-level packaging tool, rather than just a personal one. (i.e., there's just one global install ofbasheras a program, even if individual users and the system have their own package directories.)