Add bash completion for MacOS using brew
parent
80a61117b1
commit
1be5ba2123
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
COMPLETION_DIR=/usr/local/etc/bash_completion.d/
|
||||
|
||||
if [ -d "$COMPLETION_DIR" ]; then
|
||||
for i in $(ls "$COMPLETION_DIR"); do
|
||||
file="$COMPLETION_DIR/$i"
|
||||
if [ -r $file ]; then
|
||||
source $file
|
||||
fi
|
||||
unset file
|
||||
done
|
||||
unset i
|
||||
fi
|
||||
|
||||
[[ -f /usr/local/etc/bash_completion ]] && source /usr/local/etc/bash_completion
|
||||
|
||||
unset COMPLETION_DIR
|
Loading…
Reference in New Issue