zsh: complete positional devpath in udevadm info/trigger

This commit is contained in:
Ronan Pigott
2025-06-13 02:09:55 -07:00
committed by Luca Boccassi
parent a7deadd763
commit 88036a47e4

View File

@@ -17,7 +17,8 @@ _udevadm_info(){
'--export-db[Export the content of the udev database.]' \
'--cleanup-db[Cleanup the udev database.]' \
'--value[When showing properties, print only their values.]' \
'--property=[Show only properties by this name.]:NAME'
'--property=[Show only properties by this name.]:NAME' \
'*::devpath:_path_files -g "*(-/,-%)"'
}
(( $+functions[_udevadm_trigger] )) ||
@@ -42,7 +43,8 @@ _udevadm_trigger(){
'--initialized-match[Trigger events for devices that are already initialized.]' \
'--initialized-nomatch[Trigger events for devices that are not initialized yet.]' \
'--uuid[Print synthetic uevent UUID.]' \
'--prioritized-subsystem=[Trigger events for devices which belong to a matching subsystem earlier.]:SUBSYSTEM'
'--prioritized-subsystem=[Trigger events for devices which belong to a matching subsystem earlier.]:SUBSYSTEM' \
'*::devpath:_path_files -g "*(-/,-%)"'
}
(( $+functions[_udevadm_settle] )) ||