From 760875d065a8409ef4ae30e1a68b57321bc1c764 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Wed, 8 Jan 2020 01:06:06 -0500 Subject: bash,guix: "fix" completion --- .bashrc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to '.bashrc') diff --git a/.bashrc b/.bashrc index b38f7ea..a48c605 100644 --- a/.bashrc +++ b/.bashrc @@ -106,3 +106,17 @@ if ! shopt -oq posix; then . /etc/bash_completion fi fi + +# source Guix shell config dirs, for vte.sh and bash completions +GUIX_PROFILES=("${HOME}/.desktop-profile" + "${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 -- cgit v1.2.3-60-g2f50