diff --git a/EtcFiles/profile.d/shadowarch-ansible.sh b/EtcFiles/profile.d/shadowarch-ansible.sh index 1fcb88c..26294b3 100644 --- a/EtcFiles/profile.d/shadowarch-ansible.sh +++ b/EtcFiles/profile.d/shadowarch-ansible.sh @@ -1,5 +1,9 @@ ### Ansible ### -source /etc/profile.d/shadowarch-shell-environment.sh +if [ -z "$ANINIX_PROFILE_D" ]; then + source /etc/profile.d/shadowarch-shell-environment.sh +else + source "$ANINIX_PROFILE_D"/shadowarch-shell-environment.sh +fi export ANSIBLE_VAULT_FILE=$HOME/password-store/${organization}.vault export ANSIBLE_VAULT_PASSWORD_FILE="${ANSIBLE_VAULT_FILE}.password" alias ansible='/usr/bin/ansible -e @${ANSIBLE_VAULT_FILE}' diff --git a/README.md b/README.md index f85f32d..7e3205e 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,19 @@ The AniNIX provides an installer to install ShadowArch and some basic clients fo 1. Some flags are listed below. 1. If you run across trouble, take a look at the Troubleshooting section at the bottom. +## Including in an non-admin context + +To use this repo and its settings in a context where you are not installing packages, clone the project under ``. Then, add the following to your `.bashrc`. + +``` +# AniNIX +ANINIX_PROFILE_D="$HOME/src/AniNIX/ShadowArch/EtcFiles/profile.d/" +for i in `find "${ANINIX_PROFILE_D}" -type f`; do source "$i"; done +PATH="${PATH}:$HOME/src/AniNIX/ShadowArch/UserScripts:$HOME/src/AniNIX/ShadowArch/AdminScripts" +``` + +This will introduce the AniNIX customizations to your user context and path the scripts. + # References * [The ArchLinux Wiki](https://wiki.archlinux.org/) is an invaluable source of information, particularly around packages deployed by ShadowArch hosts. These are some known issues the users of ShadowArch have come across with weird reasons.