Commit f7f5b7f4 authored by dana's avatar dana

43960: Add full completion for exec and setsid

parent 1f8bea22
2018-01-01 dana <dana@dana.is>
* 43960: Completion/Linux/Command/_setsid,
Completion/Zsh/Command/_exec, Completion/Zsh/Command/_precommand:
Add full completion for exec and setsid
* 43959: Completion/Unix/Command/_ipsec,
Completion/Unix/Command/_swanctl, Completion/Unix/Type/_urls: Add
completion for strongSwan, &al.; complete unix:// URIs
......
#compdef setsid
[[ $service == setsid ]] && precommands+=( setsid )
_arguments -s -S -A '-*' : \
'(: * -)'{-h,--help}'[display help information]' \
'(: * -)'{-V,--version}'[display version information]' \
'(-c --ctty)'{-c,--ctty}'[set controlling terminal to current one]' \
'(-f --fork)'{-f,--fork}'[always fork]' \
'(-w --wait)'{-w,--wait}'[wait for program to exit, and use same return code]' \
'1: :_path_commands' \
'*:: : _normal'
#compdef exec
[[ $service == exec ]] && precommands+=( exec )
_arguments -s -S -A '-*' : \
'-a+[set argv\[0\] to specified string]:argv[0] string' \
'-c[clear environment]' \
'-l[simulate login shell (prepend - to argv\[0\])]' \
'*:: : _normal'
#compdef - nohup eval time rusage noglob nocorrect exec catchsegv aoss hilite eatmydata setsid
#compdef - nohup eval time rusage noglob nocorrect catchsegv aoss hilite eatmydata
# precommands is made local in _main_complete
precommands+=($words[1])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment