bash-completion: use default completion for redirect operators

This commit is contained in:
Frantisek Sumsal 2019-03-23 21:49:17 +01:00
parent fa28e4e377
commit 1413763ea5

View file

@ -52,6 +52,13 @@ _journalctl() {
--vacuum-size --vacuum-time --vacuum-files --output-fields'
)
# Use the default completion for shell redirect operators
if __contains_word "$prev" '>' '>>' '&>'; then
compopt -o filenames
COMPREPLY=( $(compgen -f -- "$cur") )
return 0;
fi
if __contains_word "$prev" ${OPTS[ARG]} ${OPTS[ARGUNKNOWN]}; then
case $prev in
--boot|-b)