miaou-bash helper function
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user