Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

typeset -p <TAB>



Currently, «typeset -p <TAB>» only completes the literal value "1".
«typeset -p Z<TAB>» completes nothing.

The following will fix it, at the cost of only completing "1" as a
pasted argument (not in a separate word).

Okay?

diff --git a/Completion/Zsh/Command/_typeset b/Completion/Zsh/Command/_typeset
index e4446a6ff..ac4a79063 100644
--- a/Completion/Zsh/Command/_typeset
+++ b/Completion/Zsh/Command/_typeset
@@ -30,7 +30,7 @@ allargs=(
   k "($popts -w -z)-+k[mark function for ksh-style autoloading]"
   l "($popts -T)-l[convert the value to lowercase]"
   m '(-A -E -F -T -i)-m[treat arguments as patterns]'
-  p '-p+[output parameters in form of calls to typeset]:option:((1\:multi-line\ output\ of\ arrays))'
+  p '-p-[output parameters in form of calls to typeset]:option:((1\:multi-line\ output\ of\ arrays))'
   r '(-f)-+r[mark parameters as readonly]'
   rf '-r[remember autoload path]'
   Rf '-R[remember autoload path, error if not found]'

Cheers,

Daniel



Messages sorted by: Reverse Date, Date, Thread, Author