done
}
+__get_all_device_units() {
+ systemctl list-units -t device --full --no-legend --no-pager 2>/dev/null | \
+ { while read -r a b; do echo "$a"; done; }
+}
+
_udevadm() {
local i verb comps builtin
local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
if [[ $cur = -* ]]; then
comps="${OPTS[COMMON]} ${OPTS[INFO_STANDALONE]} ${OPTS[INFO_ARG]}"
else
+ comps=$( __get_all_sysdevs; __get_all_device_units )
local IFS=$'\n'
- comps=$( __get_all_sysdevs )
fi
;;
'trigger')
if [[ $cur = -* ]]; then
comps="${OPTS[COMMON]} ${OPTS[TRIGGER_STANDALONE]} ${OPTS[TRIGGER_ARG]}"
else
+ comps=$( __get_all_sysdevs; __get_all_device_units )
local IFS=$'\n'
- comps=$( __get_all_sysdevs )
fi
;;
'settle')