add possibility for vendor configuration

parent c6a3fa94
......@@ -8,6 +8,8 @@ Overview of changes in v8.2 "Fate of the Galaxy"
=== Other changes ===
* bashstyle.sh from /etc/profile.d to /etc
* let nx-rc create a default $HOME/.bs-ng.ini if none exists
* add posibility to use a vendor provided config if user
does not have $HOME/.bs-ng.ini (/etc/bs-ng_vendor.ini)
* make bashstyle.sh load BashStyle-NG on shell startup,
(if enabled in users $HOME/.bs-ng.ini)
......
......@@ -25,7 +25,11 @@ export BSNG_VERSION=@VERSION@
export BSNG_DOCS=@DOCDIR@/bashstyle-ng/index.html
if [[ ! -f ${HOME}/.bs-ng.ini ]]; then
cp ${BSNG_DATA_DIR}/bashstyle-ng/bs-ng.ini ${HOME}/.bs-ng.ini
if [[ -f /etc/bs-ng_vendor.ini ]]; then
cp /etc/bs-ng_vendor.ini ${HOME}/.bs-ng.ini
else
cp ${BSNG_DATA_DIR}/bashstyle-ng/bs-ng.ini ${HOME}/.bs-ng.ini
fi
fi
ERR_MSG=""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment