summaryrefslogtreecommitdiffstats
path: root/.bashrc
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2020-01-08 01:06:06 -0500
committerAmin Bandali <bandali@gnu.org>2020-01-08 01:06:06 -0500
commit760875d065a8409ef4ae30e1a68b57321bc1c764 (patch)
tree8e2b355002f212e161eda161561f0c1af2425d0a /.bashrc
parenta89c8bd86f292f36af628f0b5306c0a3dfdaa744 (diff)
downloadconfigs-760875d065a8409ef4ae30e1a68b57321bc1c764.tar.gz
configs-760875d065a8409ef4ae30e1a68b57321bc1c764.tar.xz
configs-760875d065a8409ef4ae30e1a68b57321bc1c764.zip
bash,guix: "fix" completion
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc14
1 files changed, 14 insertions, 0 deletions
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