diff options
Diffstat (limited to 'shell-completion')
-rw-r--r-- | shell-completion/bash/journalctl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/shell-completion/bash/journalctl b/shell-completion/bash/journalctl index f2e882ca00..cdb1fc7cb4 100644 --- a/shell-completion/bash/journalctl +++ b/shell-completion/bash/journalctl @@ -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) |