summaryrefslogtreecommitdiff
path: root/src/zsh-completion/_sd_unit_files
diff options
context:
space:
mode:
Diffstat (limited to 'src/zsh-completion/_sd_unit_files')
-rw-r--r--src/zsh-completion/_sd_unit_files9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/zsh-completion/_sd_unit_files b/src/zsh-completion/_sd_unit_files
new file mode 100644
index 0000000000..3e7a4ee803
--- /dev/null
+++ b/src/zsh-completion/_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|socket|swap|target|timer)'
+}