zsh-workers
 help / color / mirror / code / Atom feed
cd99ebe918e6a7fbf6606c92ca66e654339d9bc8 blob 556 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
 
#compdef jexec

_jexec_normal() {
  local PATH=$PATH
  local -a _comp_priv_prefix
  # relative paths are relative to the jail's root
  path=( "$(_call_program paths jls -j $words[1] path)"/$^path )
  shift 1 words; (( CURRENT-- ))
  _normal -p $service
}

_jexec() {
  _arguments -s -S -A "-*" : \
    '-l[execute in a clean environment]' \
    '(-U)-u[host environment user whom command runs as]:host user:_users' \
    '(-u)-U[jail environment user whom command runs as]:jail user:_users' \
    '1:jail:_jails' \
    '*:: : _jexec_normal'
}

_jexec "$@"
debug log:

solving cd99ebe91 ...
found cd99ebe91 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).