We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 177fd66 commit 849d2edCopy full SHA for 849d2ed
available/02_bash_completion.bash
@@ -1,5 +1,11 @@
1
+if [ ! -e "$HOME/.local/bash_completion.d/bash.d.bash" ]; then
2
+ wget -O \
3
+ $HOME/.local/bash_completion.d/bash.d.bash \
4
+ https://github.com/tobybatch/bashdotdee/blob/main/bash_completion.bash
5
+fi
6
+
7
# anything in $HOME/.local/bash_completion.d ending .bash get included
-for x in "$HOME/.local/bash_completion.d/*.bash"; do
8
+for x in "$HOME"/.local/bash_completion.d/*.bash; do
9
source "$x"
10
done
11
# other environment specific scripts should not end .bash, e.g. see 87_django.bash
bash_completion.bash
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+_bashdotdee_completion() {
+ COMPREPLY=($(ls -1 "$HOME/.bash.d/available/"))
+}
+complete -F _bashdotdee_completion bash.d.sh
0 commit comments