feat(aa-log): update shell completion.

This commit is contained in:
Alexandre Pujol 2022-10-15 17:29:49 +01:00
parent 643a84997e
commit e8c6befc78
Failed to generate hash of commit
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@
_aa-log() {
COMPREPLY=()
local cur="${COMP_WORDS[COMP_CWORD]}"
local args=(-f -d -h)
local args=(-f -s -h)
local lastarg="${COMP_WORDS[$COMP_CWORD-1]}"
COMPREPLY+=($(compgen -W "${args[*]}" -- ${cur}))
if [[ $lastarg == "-f" ]]; then

View file

@ -5,7 +5,7 @@ _aa-log() {
local IFS=$'\n'
_arguments : \
-f'[set a logfile or a prefix to the default log file]:FILE:__aa_files' \
-d'[show dbus session event]' \
-s'[parse systemd dbus logs]' \
-h'[display help information]'
_values -C 'profile names' ${$(__aa_profiles):-""}