-
Notifications
You must be signed in to change notification settings - Fork 1
/
_zload
41 lines (36 loc) · 1000 Bytes
/
_zload
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#compdef zload
# ------------------------------------------------------------------------------
# Copyright (c) 2014 Hideaki Miyake
# Licensed under the MIT License (MIT)
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for zload (https://github.com/mollifier/zload)
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Hideaki Miyake (https://github.com/mollifier)
#
# ------------------------------------------------------------------------------
declare -a opts args
args=(
'-h[display this help and exit]'
'(-d)-a[enable auto reload]'
'(-a)-d[disable auto reload]'
'(-)*:files:_files'
)
local curcontext=$curcontext state line ret=1
declare -A opt_args
_arguments -C $opts \
$args && ret=0
return $ret
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et