aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShohei YOSHIDA <syohex@gmail.com>2026-04-07 07:07:08 +0900
committerShohei YOSHIDA <syohex@gmail.com>2026-04-07 07:07:08 +0900
commitcc3181fcaacbbcfca7e001036598637b739c7cb3 (patch)
tree0f4e23f8ccfc2caaf7d2d701b573271b6a932199
parentadd fish completion (diff)
downloadzsh-completions-add-shells.tar
zsh-completions-add-shells.tar.gz
zsh-completions-add-shells.tar.bz2
zsh-completions-add-shells.tar.lz
zsh-completions-add-shells.tar.xz
zsh-completions-add-shells.tar.zst
zsh-completions-add-shells.zip
add nu shell completionadd-shells
-rw-r--r--src/_nu85
1 files changed, 85 insertions, 0 deletions
diff --git a/src/_nu b/src/_nu
new file mode 100644
index 0000000..1589754
--- /dev/null
+++ b/src/_nu
@@ -0,0 +1,85 @@
+#compdef nu
+# ------------------------------------------------------------------------------
+# Copyright (c) 2026 Github zsh-users - https://github.com/zsh-users
+#
+# Permission is hereby granted, free of charge, to any person obtaining
+# a copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, sublicense, and/or sell copies of the Software, and to
+# permit persons to whom the Software is furnished to do so, subject to
+# the following conditions:
+#
+# The above copyright notice and this permission notice shall be included
+# in all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+# OTHER DEALINGS IN THE SOFTWARE.
+# ------------------------------------------------------------------------------
+# Description
+# -----------
+#
+# Completion script for nu 0.111.0 (https://www.nushell.sh/)
+#
+# ------------------------------------------------------------------------------
+# Authors
+# -------
+#
+# * Shohei Yoshida (https://github.com/syohex) <syohex@gmail.com>
+#
+# ------------------------------------------------------------------------------
+
+local -a table_modes=(
+ ascii_rounded basic_compact basic compact_double compact default
+ dots double heavy light markdown none psql reinforced restructured
+ rounded single thin with_love
+)
+
+_arguments \
+ '(- *)'{-h,--help}'[show help message]' \
+ '(- *)'{-v,--version}'[print the version]' \
+ '(-i --interactive)'{-i,--interactive}'[start as an interactive shell]' \
+ '(-l --login)'{-l,--login}'[start as a login shell]' \
+ '(-c --commands)'{-c,--commands}'[run the given command and then exit]:command' \
+ '(-e --execute)'{-e,--execute}'[run the given commands and then enter an interactive shell]:command' \