Skip to content

Commit

Permalink
bash autocomplete tool
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchcapper committed Dec 18, 2024
1 parent d6296b3 commit 1bc1979
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bash_autocomplete.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
set -eo pipefail -o functrace
shopt -s inherit_errexit
for entry in "${WLB_SCRIPT_FOLDER}/build"/f_*; do
BASE_NAME=$(basename "$entry")
if [[ $BASE_NAME != "f_TEMPLATE_build.sh" ]]; then
AUTO_COMP=`${entry} autocomplete`
complete -W "$AUTO_COMP" "$BASE_NAME"
#complete -W "$AUTO_COMP" "$entry"
fi
done

0 comments on commit 1bc1979

Please sign in to comment.