shell-completion/zsh: add -*type*- headers

Since there's no file extension, emacs and other editors do not know that this is
supposed to be in shell syntax.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2019-04-05 11:41:35 +02:00
parent 843cfcb15c
commit c1072f6473
21 changed files with 21 additions and 21 deletions

View File

@ -1,4 +1,4 @@
#compdef bootctl
#compdef bootctl -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
(( $+functions[_bootctl_commands] )) || _bootctl_commands()

View File

@ -1,4 +1,4 @@
#compdef busctl
#compdef busctl -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
# busctl(1) completion -*- shell-script -*-

View File

@ -1,4 +1,4 @@
#compdef coredumpctl
#compdef coredumpctl -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
(( $+functions[_coredumpctl_commands] )) ||

View File

@ -1,4 +1,4 @@
#compdef hostnamectl
#compdef hostnamectl -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
(( $+functions[_hostnamectl_set-hostname] )) ||

View File

@ -1,4 +1,4 @@
#compdef journalctl
#compdef journalctl -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
(( $+functions[_journalctl_fields] )) ||

View File

@ -1,4 +1,4 @@
#compdef kernel-install
#compdef kernel-install -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
(( $+functions[_kernel-install_images] )) ||

View File

@ -1,4 +1,4 @@
#compdef localectl
#compdef localectl -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
(( $+functions[_localectl_set-locale] )) ||

View File

@ -1,4 +1,4 @@
#compdef loginctl
#compdef loginctl -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
(( $+functions[_loginctl_all_sessions] )) ||

View File

@ -1,4 +1,4 @@
#compdef machinectl
#compdef machinectl -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
(( $+functions[__machinectl_get_machines] )) ||

View File

@ -1,4 +1,4 @@
#compdef networkctl
#compdef networkctl -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
(( $+functions[_networkctl_commands] )) ||

View File

@ -1,4 +1,4 @@
#compdef systemctl
#compdef systemctl -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
(( $+functions[_systemctl_commands] )) || _systemctl_commands()

View File

@ -1,4 +1,4 @@
#compdef systemd-cat systemd-ask-password systemd-cgls systemd-cgtop systemd-detect-virt systemd-machine-id-setup systemd-notify systemd-tty-ask-password-agent
#compdef systemd-cat systemd-ask-password systemd-cgls systemd-cgtop systemd-detect-virt systemd-machine-id-setup systemd-notify systemd-tty-ask-password-agent -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
local curcontext="$curcontext" state lstate line

View File

@ -1,4 +1,4 @@
#compdef systemd-analyze
#compdef systemd-analyze -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
(( $+functions[_systemd-analyze_log-level] )) ||

View File

@ -1,4 +1,4 @@
#compdef systemd-delta
#compdef systemd-delta -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
(( $+functions[_systemd-delta_types] )) ||

View File

@ -1,4 +1,4 @@
#compdef systemd-inhibit
#compdef systemd-inhibit -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
(( $+functions[_systemd-inhibit_commands] )) ||

View File

@ -1,4 +1,4 @@
#compdef systemd-nspawn
#compdef systemd-nspawn -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
(( $+functions[_systemd-nspawn_caps] )) ||

View File

@ -1,4 +1,4 @@
#compdef systemd-resolve
#compdef systemd-resolve -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.

View File

@ -1,4 +1,4 @@
#compdef systemd-run
#compdef systemd-run -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
# @todo _systemctl has a helper with the same name, so we must redefine

View File

@ -1,4 +1,4 @@
#compdef systemd-tmpfiles
#compdef systemd-tmpfiles -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
_arguments \

View File

@ -1,4 +1,4 @@
#compdef timedatectl
#compdef timedatectl -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
_timedatectl_set-timezone(){

View File

@ -1,4 +1,4 @@
#compdef udevadm
#compdef udevadm -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
(( $+functions[_udevadm_info] )) ||