diff options
author | Simon McVittie <smcv@collabora.com> | 2021-06-24 10:33:40 +0100 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2021-06-24 11:12:49 +0100 |
commit | 7571c022540cb94c14a2bb9e8bfffbfdbfc71661 (patch) | |
tree | fd6b3c3582e9fd4e9e5bc7a0e2a6e26f5465696a /completions | |
parent | 4142eaab902487e25240832b4def0c0399adbb44 (diff) | |
download | bubblewrap-7571c022540cb94c14a2bb9e8bfffbfdbfc71661.tar.gz |
zsh: Add completion for --clearenv
Also don't offer --unsetenv as a completion after --clearenv: it would
be redundant.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'completions')
-rwxr-xr-x | completions/zsh/_bwrap | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/completions/zsh/_bwrap b/completions/zsh/_bwrap index a3211b9..d512506 100755 --- a/completions/zsh/_bwrap +++ b/completions/zsh/_bwrap @@ -14,6 +14,7 @@ _bwrap_args=( '--cap-drop[Drop cap CAP when running as privileged user]:capability to add:->caps' '--chdir[Change directory to DIR]:working directory for sandbox: _files -/' '--chmod[Set permissions]: :_guard "[0-7]#" "permissions in octal":path to set permissions:_files' + '--clearenv[Unset all environment variables]' '--dev-bind-try[Equal to --dev-bind but ignores non-existent SRC]:source:_files:destination:_files' '--dev-bind[Bind mount the host path SRC on DEST, allowing device access]:source:_files:destination:_files' '--dev[Mount new dev on DEST]:mount point for /dev:_files -/' @@ -43,7 +44,7 @@ _bwrap_args=( '--sync-fd[Keep this fd open while sandbox is running]: :_guard "[0-9]#" "file descriptor to keep open"' '--tmpfs[Mount new tmpfs on DEST]:mount point for tmpfs:_files -/' '--uid[Custom uid in the sandbox (requires --unshare-user or --userns)]: :_guard "[0-9]#" "numeric group ID"' - '--unsetenv[Unset an environment variable]:variable to unset:_parameters -g "*export*"' + '(--clearenv)--unsetenv[Unset an environment variable]:variable to unset:_parameters -g "*export*"' '--unshare-all[Unshare every namespace we support by default]' '--unshare-cgroup-try[Create new cgroup namespace if possible else continue by skipping it]' '--unshare-cgroup[Create new cgroup namespace]' |