diff options
| author | Christopher Bock <christopher@bocki.com> | 2025-04-12 13:20:15 +0200 |
|---|---|---|
| committer | Oliver Kiddle <opk@zsh.org> | 2025-10-23 23:04:53 +0200 |
| commit | 044267cecb0e44eab578dd091289cae9e8b963ff (patch) | |
| tree | 21908fe8b72b48bd8679521946f999283a888ffe /Completion/Debian/Command/_schroot | |
| parent | github #147: Clean up some leaked variables in completion functions (diff) | |
| download | zsh-044267cecb0e44eab578dd091289cae9e8b963ff.tar zsh-044267cecb0e44eab578dd091289cae9e8b963ff.tar.gz zsh-044267cecb0e44eab578dd091289cae9e8b963ff.tar.bz2 zsh-044267cecb0e44eab578dd091289cae9e8b963ff.tar.lz zsh-044267cecb0e44eab578dd091289cae9e8b963ff.tar.xz zsh-044267cecb0e44eab578dd091289cae9e8b963ff.tar.zst zsh-044267cecb0e44eab578dd091289cae9e8b963ff.zip | |
github #131: add missing options
Diffstat (limited to 'Completion/Debian/Command/_schroot')
| -rw-r--r-- | Completion/Debian/Command/_schroot | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/Completion/Debian/Command/_schroot b/Completion/Debian/Command/_schroot index 117df45ef..e073f692c 100644 --- a/Completion/Debian/Command/_schroot +++ b/Completion/Debian/Command/_schroot @@ -9,19 +9,25 @@ _arguments -S \ '(-a --all)'{-a,--all}'[select all chroots and active sessions]' \ '--all-chroots[select all chroots]' \ '--all-sessions[select all active sessions]' \ - '*'{-c,--chroot=}'[use specified chroot]:chroot:->chroot' \ - '(-d --directory)'{-d,--directory=}'[directory to use]:dir:_files -W / -P /' \ - '(-u --user)'{-u,--user=}'[username (default current user)]:user:_users' \ + '--all-source-chroots[select all source chroots]' \ + '--exclude-aliases[do not include aliases]' \ + '*'{-c+,--chroot=}'[use specified chroot]:chroot:->chroot' \ + '(-d --directory)'{-d+,--directory=}'[directory to use]:dir:_files -W / -P /' \ + '(-u --user)'{-u+,--user=}'[username (default current user)]:user:_users' \ + '(-s --shell)'{-s+,--shell=}'[shell to use as login shell]:shell:->shells' \ '(-l --list)'{-l,--list}'[list available chroots]' \ '(-i --info)'{-i,--info}'[show information about selected chroots]' \ '--location[print location of selected chroots]' \ '--config[dump configuration of selected chroots]' \ '(-p --preserve-environment)'{-p,--preserve-environment}'[preserve user environment]' \ + '(-o --option)'{-o+,--option=}'[set option]:option key=value' \ '(-q --quiet)'{-q,--quiet}'[quiet]' \ '(-v --verbose)'{-v,--verbose}'[verbose]' \ '(-V --version)'{-V,--version}'[version]' \ + '--automatic-session[begin, run and end a session automatically]' \ '(-b --begin-session)'{-b,--begin-session}'[begin a session; returns a session ID]' \ '(-r --run-session)'{-r,--run-session}'[run an existing session]' \ + '(-n --session-name)'{-n+,--session-name=}'[session name]:session name' \ '--recover-session[recover an existing session]' \ '(-e --end-session)'{-e,--end-session}'[end an existing session]' \ '(-f --force)'{-f,--force}'[force operation]' \ @@ -33,4 +39,8 @@ case "$state" in _wanted tag expl 'chroot' \ compadd $(schroot -l -a) ;; + (shells) + _wanted -C $context shells expl shell compadd ${(f)^"$(</etc/shells)"}(N) + return + ;; esac |
