summaryrefslogtreecommitdiff
path: root/bash/bash_completion
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bash_completion')
-rw-r--r--bash/bash_completion7
1 files changed, 7 insertions, 0 deletions
diff --git a/bash/bash_completion b/bash/bash_completion
new file mode 100644
index 0000000..9fd9617
--- /dev/null
+++ b/bash/bash_completion
@@ -0,0 +1,7 @@
+COMPLETION_DIR=~/.bash_completion.d/
+
+if [[ -d $COMPLETION_DIR && -r $COMPLETION_DIR && -x $COMPLETION_DIR ]]; then
+ for i in $(LC_ALL=C command ls "$COMPLETION_DIR"); do
+ . "$COMPLETION_DIR/$i"
+ done
+fi