_services: Include systemd services.

This commit is contained in:
Ville Skyttä 2011-06-18 23:26:19 +03:00
parent 50d44ca3a4
commit 472b5bb958

View File

@ -1049,6 +1049,9 @@ _services()
$restore_nullglob
COMPREPLY+=( $( systemctl list-units --full --all 2>/dev/null | \
awk '$1 ~ /\.service$/ { sub("\\.service$", "", $1); print $1 }' ) )
COMPREPLY=( $( compgen -W '${COMPREPLY[@]#@($sysvdir|$famdir)/}' -- "$cur" ) )
}