miaou-bash.complete

This commit is contained in:
pvincent
2026-08-23 16:14:44 +04:00
parent c92cc51eea
commit 8538e3700d
3 changed files with 23 additions and 1 deletions
+14
View File
@@ -0,0 +1,14 @@
function _miaou_bash {
local cur="${COMP_WORDS[COMP_CWORD]}"
if ((COMP_CWORD == 1)); then
if [[ $cur =~ ^- ]]; then
compopt -o nospace
mapfile -t COMPREPLY < <(compgen -W "--self-upgrade --version --help --uninstall" -- "$cur")
else
compopt -o filenames
mapfile -t COMPREPLY < <(compgen -f -- "$cur")
fi
fi
}
complete -F _miaou_bash "miaou-bash"