[Pkg-zsh-devel] Bug#622933: zsh: Enable completions by default, unless skip_global_compinit is set

Frank Terbeck ft at bewatermyfriend.org
Sat Apr 16 07:41:51 UTC 2011


Daniel Hahler wrote:
> In Ubuntu, the attached patch was applied to achieve the following:
>
>     - debian/zshrc: Enable completions by default, unless
>       skip_global_compinit is set

Daniel informed me of this patch on IRC. I think it's a reasonable thing
to have.  I'd just do it slightly different:

case $skip_global_compinit in
     ((#i)on|yes|enable|1) ;;
     (*)
        autoload -Uz compinit
        compinit
        ;;
esac
(( ${+parameters[skip_global_compinit]} )) && unset skip_global_compinit

On top of that, I want proper documentation of the behaviour and how to
trigger it in `README.debian'.

Comments?

Regards, Frank

-- 
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
                                                  -- RFC 1925





More information about the Pkg-zsh-devel mailing list