aboutsummaryrefslogtreecommitdiffstats
path: root/src/_envdir
diff options
context:
space:
mode:
authorShohei YOSHIDA <syohex@gmail.com>2023-10-03 16:51:13 +0900
committerShohei YOSHIDA <syohex@gmail.com>2023-10-03 16:51:13 +0900
commitd88edeed35aaf57493809535f8658edaa2b8be87 (patch)
tree0e6b9432db03aa78a563163f1f200e43d535169f /src/_envdir
parentMerge pull request #1045 from zsh-users/update_rails (diff)
downloadzsh-completions-d88edeed35aaf57493809535f8658edaa2b8be87.tar
zsh-completions-d88edeed35aaf57493809535f8658edaa2b8be87.tar.gz
zsh-completions-d88edeed35aaf57493809535f8658edaa2b8be87.tar.bz2
zsh-completions-d88edeed35aaf57493809535f8658edaa2b8be87.tar.lz
zsh-completions-d88edeed35aaf57493809535f8658edaa2b8be87.tar.xz
zsh-completions-d88edeed35aaf57493809535f8658edaa2b8be87.tar.zst
zsh-completions-d88edeed35aaf57493809535f8658edaa2b8be87.zip
Do not use global variable, use local variable instead
Diffstat (limited to 'src/_envdir')
-rw-r--r--src/_envdir10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/_envdir b/src/_envdir
index 6437993..e452401 100644
--- a/src/_envdir
+++ b/src/_envdir
@@ -39,7 +39,7 @@
#
# ------------------------------------------------------------------------------
-args=(
+local -a args=(
'(-h --help)'{-h+,--help}'[show this help message and exit]'
'(-)'--version'[display version information and exit]'
'(-)1:directory: _path_files -/'
@@ -47,3 +47,11 @@ args=(
'*::arguments: _precommand'
)
_arguments -S $args
+
+# 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