|
Server : LiteSpeed System : Linux server104.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64 User : saleoqej ( 6848) PHP Version : 8.0.30 Disable Function : NONE Directory : /usr/share/zsh/vendor-completions/ |
#compdef etckeeper
local _VCS=$(sed -n "s,^VCS=\([\"']\?\)\(.*\)\1$,\2,p" \
${ETCKEEPER_CONF_DIR:-/etc/etckeeper}/etckeeper.conf 2>/dev/null)
_arguments '--help[show this help message and exit]' \
'--version[show version information]' \
":etckeeper command:(/etc/etckeeper/*.d(/:t:r))" \
'*::subcmd:->subcmd' && return 0
case "$words[1]" in
(commit)
_arguments ':message text: '
;;
(update-ignore)
_arguments '-a[add a "managed by etckeeper" block]'
;;
(uninit)
_arguments '-f[force uninit without prompting]'
;;
(vcs)
[[ $_VCS == git ]] && service=git
_$_VCS
;;
(*)
;;
esac