X-Git-Url: https://git.shemshak.org/gitweb.cgi/~bandali/configs/blobdiff_plain/9c9bf1a21872cc492520b2b4b6bac2a84be4a5f5..655d9048326e1279f753b087cda9ce5b616056b7:/.bashrc?ds=sidebyside diff --git a/.bashrc b/.bashrc index b38f7ea..7e81de3 100644 --- a/.bashrc +++ b/.bashrc @@ -106,3 +106,16 @@ if ! shopt -oq posix; then . /etc/bash_completion fi fi + +# source Guix shell config dirs, for vte.sh and bash completions +GUIX_PROFILES=("${HOME}/.guix-profile" + "${HOME}/.config/guix/current") +for profile in "${GUIX_PROFILES[@]}"; do + for dir in "${profile}/etc/bash_completion.d" "${profile}/etc/profile.d"; do + if [ -d "${dir}" ]; then + for f in "${dir}"/*; do + . $f + done + fi + done +done