zsh-workers
 help / color / mirror / code / Atom feed
8e7c6bc42129f9b9b24a27a3941ac2e480c12557 blob 1486 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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'

debug log:

solving 8e7c6bc42 ...
found 8e7c6bc42 in https://git.vuxu.org/mirror/zsh/

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).