From fd252daafd19f5b4bf0b02a67290a8a6aa0f8b4c Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Sun, 27 Nov 2022 20:46:14 -0800 Subject: [PATCH] ksh completions: add descriptions Also remove options ksh --help says are obsolete. FWIW ksh93 does a bit more than what is here but this is pretty good. --- share/completions/ksh.fish | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/share/completions/ksh.fish b/share/completions/ksh.fish index 6ef0e5cbe..9f4c78ef4 100644 --- a/share/completions/ksh.fish +++ b/share/completions/ksh.fish @@ -1,6 +1,4 @@ set -l options allexport bgnice braceexpand emacs errexit globstar gmacs histexpand ignoreeof keyword letoctal markdirs monitor multiline noclobber noexec noglob nolog notify nounset pipefail privileged showme trackall verbose vi viraw xtrace -complete -c ksh -a "+{a,b,c,e,f,h,i,k,n,o,p,r,s,t,u,v,x,B,C,D,P}" -complete -c ksh -a "-{a,b,c,e,f,h,i,k,n,o,p,r,s,t,u,v,x,B,C,D,P}" -complete -c ksh -s R - +complete -c ksh -a "{+,-}{a\t'always export vars',b\t'print job end message immediately',c\t'read commands from 1st arg',e\t'fail on non-zero exit status',f\t'disable pathname expansion',i\t'interactive session',n\t'run script but skip execution',o\t'specify options',p\t'privledged mode',r\t'restricted mode',s\t'read commands from stdin',u\t'error on expanding unset var',v\tverbose,x\t'execution trace',B\t'enable {...} expansion',C\t'always noclobber',D\t'output strings in script'}" complete -c ksh -a "$options" +complete -c ksh -a "cilrsDEabefhkmnprtuvxBCGH"