summaryrefslogtreecommitdiffstats
path: root/shell-completion/zsh/_sd_unit_files
blob: 654f48fca5eb5a4c99df7c0f3cd585b0ed820ca4 (plain)
1
2
3
4
5
6
7
8
9
10
#autoload
# SPDX-License-Identifier: LGPL-2.1-or-later

_sd_unit_files() {
    local files expl
    files=( '*:files:->files' )

    _description files expl 'unit file'
    _files "$expl[@]" -g '*.(automount|device|mount|path|service|socket|swap|target|timer)'
}