The following commit has been merged in the master branch:
commit 472b5bb9588e0ae7bbf576ca355ebc9dae415eed
Author: Ville Skyttä <[email protected]>
Date:   Sat Jun 18 23:26:19 2011 +0300

    _services: Include systemd services.

diff --git a/bash_completion b/bash_completion
index 98c2fd7..819899e 100644
--- a/bash_completion
+++ b/bash_completion
@@ -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" 
) )
 }
 

-- 
bash-completion

_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-commits

Reply via email to