[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-385-gccb8c91

Ville Skyttä ville.skytta at iki.fi
Sat Jun 18 20:29:08 UTC 2011


The following commit has been merged in the master branch:
commit 472b5bb9588e0ae7bbf576ca355ebc9dae415eed
Author: Ville Skyttä <ville.skytta at iki.fi>
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



More information about the Bash-completion-commits mailing list