diff options
| author | Danilo M. <danix@danix.xyz> | 2026-05-07 17:42:30 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-05-07 17:42:30 +0200 |
| commit | 804a499754f5fec2db465effb174448d924e344e (patch) | |
| tree | 7ab90f0361813aab8371a95e751fbe41f07762f1 /mkhintfile.bash-completion | |
| parent | 03b2f896062ce689df655160328381004b3ad26d (diff) | |
| download | mkhintfile-master.tar.gz mkhintfile-master.zip | |
- Rename script and completion file to mkhint/mkhint.bash-completion
- Add --delete/-d flag to remove one or more hint files (and .bak if present)
- Fix bash completion: correct hint_dir path, use find for nested .info files,
add --delete completion, add flag name completion
- Update all references in CLAUDE.md, README.md, and source files
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'mkhintfile.bash-completion')
| -rw-r--r-- | mkhintfile.bash-completion | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/mkhintfile.bash-completion b/mkhintfile.bash-completion deleted file mode 100644 index e217edf..0000000 --- a/mkhintfile.bash-completion +++ /dev/null @@ -1,33 +0,0 @@ -# bash completion for mkhintfile.sh -# Install: sudo cp mkhintfile.bash-completion /etc/bash-completion.d/mkhintfile - -_mkhintfile_completions() { - local cur prev repo_dir hint_dir - _init_completion || return - - repo_dir="/var/lib/sbopkg/SBo-danix" - hint_dir="/tmp/hintdir" - - case "$prev" in - --new|-n) - local -a words=() - for f in "$repo_dir"/*.info; do - [[ -f "$f" ]] && words+=("$(basename "${f%.info}")") - done - COMPREPLY=($(compgen -W "${words[*]}" -- "$cur")) - ;; - --hintfile|-f) - local -a words=() - for f in "$hint_dir"/*.hint; do - [[ -f "$f" ]] && words+=("$(basename "${f%.hint}")") - done - COMPREPLY=($(compgen -W "${words[*]}" -- "$cur")) - ;; - # --version (no completion, raw text) - # --list, --help (no value completion, flags only) - *) - ;; - esac -} - -complete -F _mkhintfile_completions mkhintfile.sh |
