diff options
| author | Shohei YOSHIDA <syohex@gmail.com> | 2026-04-07 07:07:08 +0900 |
|---|---|---|
| committer | Shohei YOSHIDA <syohex@gmail.com> | 2026-04-07 07:07:08 +0900 |
| commit | cc3181fcaacbbcfca7e001036598637b739c7cb3 (patch) | |
| tree | 0f4e23f8ccfc2caaf7d2d701b573271b6a932199 | |
| parent | add fish completion (diff) | |
| download | zsh-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/_nu | 85 |
1 files changed, 85 insertions, 0 deletions
@@ -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' \ |
