diff --git a/root/usr/share/bash-completion/completions/aa-log b/root/usr/share/bash-completion/completions/aa-log index 0e01b961c..24620fab2 100644 --- a/root/usr/share/bash-completion/completions/aa-log +++ b/root/usr/share/bash-completion/completions/aa-log @@ -3,7 +3,7 @@ _aa-log() { COMPREPLY=() local cur="${COMP_WORDS[COMP_CWORD]}" - local args=(-f -s -h) + local args=(-f --file -s --systemd -h --help) local lastarg="${COMP_WORDS[$COMP_CWORD-1]}" COMPREPLY+=($(compgen -W "${args[*]}" -- ${cur})) if [[ $lastarg == "-f" ]]; then diff --git a/root/usr/share/zsh/site-functions/_aa-log.zsh b/root/usr/share/zsh/site-functions/_aa-log.zsh index 7ee4d7f8b..f9bc5e99a 100644 --- a/root/usr/share/zsh/site-functions/_aa-log.zsh +++ b/root/usr/share/zsh/site-functions/_aa-log.zsh @@ -4,9 +4,9 @@ _aa-log() { local IFS=$'\n' _arguments : \ - -f'[set a logfile or a prefix to the default log file]:FILE:__aa_files' \ - -s'[parse systemd dbus logs]' \ - -h'[display help information]' + {-f,--file}'[set a logfile or a suffix to the default log file]:FILE:__aa_files' \ + {-s,--systemd}'[parse systemd logs from journalctl]' \ + {-h,--help}'[display help information]' _values -C 'profile names' ${$(__aa_profiles):-""} }