]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shell-completion: add missing uevent actions for udevadm
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 17 Aug 2021 14:13:07 +0000 (23:13 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 17 Aug 2021 14:22:26 +0000 (23:22 +0900)
shell-completion/zsh/_udevadm

index a19829c1dee2fa12e0b38d76248166199659a90a..87fdb5e42ce49f560e4fe9e072329faaa5b0221e 100644 (file)
@@ -23,7 +23,7 @@ _udevadm_trigger(){
         '--dry-run[Do not actually trigger the event.]' \
         '--quiet[Suppress error logging in triggering events.]' \
         '--type=[Trigger a specific type of devices.]:types:(devices subsystems failed)' \
-        '--action=[Type of event to be triggered.]:actions:(add change remove)' \
+        '--action=[Type of event to be triggered.]:actions:(add change remove move online offline bind unbind)' \
         '--subsystem-match=[Trigger events for devices which belong to a matching subsystem.]' \
         '--subsystem-nomatch=[Do not trigger events for devices which belong to a matching subsystem.]' \
         '--attr-match=attribute=[Trigger events for devices with a matching sysfs attribute.]' \
@@ -74,7 +74,7 @@ _udevadm_monitor(){
 (( $+functions[_udevadm_test] )) ||
 _udevadm_test(){
     _arguments \
-        '--action=[The action string.]:actions:(add change remove)' \
+        '--action=[The action string.]:actions:(add change remove move online offline bind unbind)' \
         '--subsystem=[The subsystem string.]' \
         '--help[Print help text.]' \
         '*::devpath:_files -P /sys/ -W /sys'