From d88edeed35aaf57493809535f8658edaa2b8be87 Mon Sep 17 00:00:00 2001 From: Shohei YOSHIDA Date: Tue, 3 Oct 2023 16:51:13 +0900 Subject: [PATCH] Do not use global variable, use local variable instead --- src/_envdir | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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