From f7f5b7f4ee17027438135249b1f8b035742206c0 Mon Sep 17 00:00:00 2001 From: dana Date: Tue, 1 Jan 2019 08:01:14 -0600 Subject: 43960: Add full completion for exec and setsid --- Completion/Zsh/Command/_exec | 9 +++++++++ Completion/Zsh/Command/_precommand | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 Completion/Zsh/Command/_exec (limited to 'Completion/Zsh/Command') diff --git a/Completion/Zsh/Command/_exec b/Completion/Zsh/Command/_exec new file mode 100644 index 000000000..8de341a02 --- /dev/null +++ b/Completion/Zsh/Command/_exec @@ -0,0 +1,9 @@ +#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' diff --git a/Completion/Zsh/Command/_precommand b/Completion/Zsh/Command/_precommand index f57e668c6..c9eef78af 100644 --- a/Completion/Zsh/Command/_precommand +++ b/Completion/Zsh/Command/_precommand @@ -1,4 +1,4 @@ -#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]) -- cgit 1.4.1