diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-06-28 21:08:18 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-06-28 21:10:14 +0200 |
commit | 7ce7278217774e8383a0b4ecf396a4cb03bb3a87 (patch) | |
tree | 810c6094358a26e7a248889c63c3bf7ea488f705 /shell-completion | |
parent | udevadm: support special value 'help' for --action option (diff) | |
download | systemd-7ce7278217774e8383a0b4ecf396a4cb03bb3a87.tar.xz systemd-7ce7278217774e8383a0b4ecf396a4cb03bb3a87.zip |
bash-completion: udevadm: list all possible values for --action option
Diffstat (limited to 'shell-completion')
-rw-r--r-- | shell-completion/bash/udevadm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell-completion/bash/udevadm b/shell-completion/bash/udevadm index c151a41978..cb12c25538 100644 --- a/shell-completion/bash/udevadm +++ b/shell-completion/bash/udevadm @@ -119,7 +119,7 @@ _udevadm() { comps='devices subsystems' ;; -c|--action) - comps='add change remove bind unbind' + comps=$( udevadm trigger --action help ) ;; -y|--sysname-match|-b|--parent-match) comps=$( __get_all_sysdevs ) @@ -196,7 +196,7 @@ _udevadm() { if __contains_word "$prev" ${OPTS[TEST]}; then case $prev in -a|--action) - comps='add change remove bind unbind' + comps=$( udevadm test --action help ) ;; -N|--resolve-names) comps='early late never' |