-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Description
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
fiThis 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.)
Metadata
Metadata
Assignees
Labels
No labels