aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2016-10-16 14:23:28 +0200
committerDaniel Hahler <git@thequod.de>2016-10-16 14:23:28 +0200
commitc822cd07a563939be6d9f3f38e2b9f60067d0591 (patch)
tree7880e37454f751c2496536112015ccbba511e693 /src
parentMerge pull request #458 from foudfou/master (diff)
downloadzsh-completions-c822cd07a563939be6d9f3f38e2b9f60067d0591.tar
zsh-completions-c822cd07a563939be6d9f3f38e2b9f60067d0591.tar.gz
zsh-completions-c822cd07a563939be6d9f3f38e2b9f60067d0591.tar.bz2
zsh-completions-c822cd07a563939be6d9f3f38e2b9f60067d0591.tar.lz
zsh-completions-c822cd07a563939be6d9f3f38e2b9f60067d0591.tar.xz
zsh-completions-c822cd07a563939be6d9f3f38e2b9f60067d0591.tar.zst
zsh-completions-c822cd07a563939be6d9f3f38e2b9f60067d0591.zip
Add completion for envdir
Ref: https://github.com/jezdez/envdir/issues/54
Diffstat (limited to 'src')
-rw-r--r--src/_envdir49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/_envdir b/src/_envdir
new file mode 100644
index 0000000..6437993
--- /dev/null
+++ b/src/_envdir
@@ -0,0 +1,49 @@
+#compdef envdir
+# ------------------------------------------------------------------------------
+# Copyright (c) 2016, Github zsh-users (https://github.com/zsh-users)
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+# * Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# * Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the distribution.
+# * Neither the name of the zsh-users nor the
+# names of its contributors may be used to endorse or promote products
+# derived from this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+# ARE DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY DIRECT,
+# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# ------------------------------------------------------------------------------
+# Description
+# -----------
+#
+# Completion script for envdir (https://github.com/jezdez/envdir).
+# It completes its few options and then a directory and command.
+#
+# ------------------------------------------------------------------------------
+# Authors
+# -------
+#
+# * Daniel Hahler <https://daniel.hahler.de/>
+#
+# ------------------------------------------------------------------------------
+
+args=(
+ '(-h --help)'{-h+,--help}'[show this help message and exit]'
+ '(-)'--version'[display version information and exit]'
+ '(-)1:directory: _path_files -/'
+ '(-)2:command: _command_names -e'
+ '*::arguments: _precommand'
+)
+_arguments -S $args