summaryrefslogtreecommitdiff
path: root/shell-completion/zsh/_sd_unit_files
diff options
context:
space:
mode:
Diffstat (limited to 'shell-completion/zsh/_sd_unit_files')
-rw-r--r--shell-completion/zsh/_sd_unit_files9
1 files changed, 9 insertions, 0 deletions
diff --git a/shell-completion/zsh/_sd_unit_files b/shell-completion/zsh/_sd_unit_files
new file mode 100644
index 0000000000..4778a0420d
--- /dev/null
+++ b/shell-completion/zsh/_sd_unit_files
@@ -0,0 +1,9 @@
+#autoload
+
+_sd_unit_files() {
+ local files expl
+ files=( '*:files:->files' )
+
+ _description files expl 'unit file'
+ _files "$expl[@]" -g '*.(automount|busname|device|mount|path|service|snapshot|socket|swap|target|timer)'
+}