diff options
author | Axel Beckert <abe@deuxchevaux.org> | 2022-04-11 00:17:48 +0200 |
---|---|---|
committer | Axel Beckert <abe@deuxchevaux.org> | 2022-04-11 00:17:48 +0200 |
commit | b09f4483416c54c1782824633dfabaf2ec0265b6 (patch) | |
tree | 304bc82642862525ae680c7fbaa249663b10ad57 /Completion/Linux/Command/_nsenter | |
parent | 12eb3e5356f2fc3351eed58ef1cef1b8fb83b504 (diff) | |
parent | 6e55c920503071e917619b8cb1a188cd35d772db (diff) | |
download | zsh-b09f4483416c54c1782824633dfabaf2ec0265b6.tar.gz zsh-b09f4483416c54c1782824633dfabaf2ec0265b6.zip |
New upstream version 5.8.1.2-test
Diffstat (limited to 'Completion/Linux/Command/_nsenter')
-rw-r--r-- | Completion/Linux/Command/_nsenter | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Completion/Linux/Command/_nsenter b/Completion/Linux/Command/_nsenter new file mode 100644 index 000000000..8e7c6bc42 --- /dev/null +++ b/Completion/Linux/Command/_nsenter @@ -0,0 +1,28 @@ +#compdef nsenter + +local ign +(( $#words > 2 )) && ign='!' + +_arguments -S -s \ + '(-a --all)'{-a,--all}'[enter all namespaces]' \ + '(-t --target)'{-t+,--target=}'[specify target process to get namespaces from]:pid:_pids' \ + '(-m --mount)'{-m-,--mount=-}'[enter mount namespace]::file:_files' \ + '(-u --uts)'{-u-,--uts=-}'[enter UTS namespace (hostname etc)]::file:_files' \ + '(-i --ipc)'{-i-,--ipc=-}'[enter System V IPC namespace]::file:_files' \ + '(-n --net)'{-n-,--net=-}'[enter network namespace]::file:_files' \ + '(-p --pid)'{-p-,--pid=-}'[enter pid namespace]::file:_files' \ + '(-C --cgroup)'{-C-,--cgroup=-}'[enter cgroup namespace]::file:_files' \ + '(-U --user)'{-U-,--user=-}'[enter user namespace]::file:_files' \ + '(-T --time)'{-T-,--time=-}'[enter time namespace]::file:_files' \ + '(-S --setuid)'{-S+,--setuid=}'[set uid in entered namespace]:uid [0]' \ + '(-G --setgid)'{-G+,--setgid=}'[set gid in entered namespace]:gid [0]' \ + "--preserve-credentials[don't touch uids or gids]" \ + '(-r --root)'{-r+,--root=}'[set the root directory]:directory:_directories' \ + '(-w --wd)'{-w+,--wd=}'[set the working directory]:directory:_directories' \ + '(-F --no-fork)'{-F,--no-fork}"[don't fork]" \ + '(-Z --follow-context)'{-Z,--follow-context}'[set SELinux context according to --target PID]' \ + "${ign}(- 1 *)"{-h,--help}'[display usage information]' \ + "${ign}(- 1 *)"{-V,--version}'[display version information]' \ + '1: : _command_names -e' \ + '*::args :_normal' + |