miaou-bash helper function

This commit is contained in:
pvincent
2026-08-23 16:40:06 +04:00
parent 410a5809a8
commit 842df43206
6 changed files with 16 additions and 19 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ function _miaou_bash {
local cur="${COMP_WORDS[COMP_CWORD]}"
if ((COMP_CWORD == 1)); then
if [[ $cur =~ ^- ]]; then
compopt -o nospace
# compopt -o nospace
mapfile -t COMPREPLY < <(compgen -W "--self-upgrade --version --help --uninstall" -- "$cur")
else
compopt -o filenames