bash,guix: "fix" completion
authorAmin Bandali <bandali@gnu.org>
Wed, 8 Jan 2020 06:06:06 +0000 (01:06 -0500)
committerAmin Bandali <bandali@gnu.org>
Wed, 8 Jan 2020 06:06:06 +0000 (01:06 -0500)
.bashrc
.config/guix/manifest/chaman.scm

diff --git a/.bashrc b/.bashrc
index b38f7ea..a48c605 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -106,3 +106,17 @@ if ! shopt -oq posix; then
     . /etc/bash_completion
   fi
 fi
     . /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
index 5a41334..596d1cd 100644 (file)
@@ -1,6 +1,6 @@
 (specifications->manifest
   '("audacity"
 (specifications->manifest
   '("audacity"
-    ;"bash-completion"
+    "bash-completion"
     "cvs"
     "emacs"
     "emacs-alert"
     "cvs"
     "emacs"
     "emacs-alert"