Fix bash completion for lists of short options

This commit is contained in:
Nicolai Dagestad 2022-02-03 17:31:57 +01:00
parent ab6b1b3679
commit 0f49a8a033
3 changed files with 4 additions and 2 deletions

View file

@ -75,7 +75,7 @@ _foot()
: # don't autocomplete for these flags
else
# complete commands from $PATH
COMPREPLY=( $(compgen -c ${cur}) )
COMPREPLY=( $(compgen -c -- ${cur}) )
fi
return 0

View file

@ -66,7 +66,7 @@ _footclient()
: # don't autocomplete for these flags
else
# complete commands from $PATH
COMPREPLY=( $(compgen -c ${cur}) )
COMPREPLY=( $(compgen -c -- ${cur}) )
fi
return 0