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

Re: segmentation fault in menu-select



Jun T. wrote:
> Has this post been answered in other place?
No.

> At 5:40 PM +0400 08.5.13, sergio wrote:
>> % cat .zshrc
>> autoload -Uz compinit
>> compinit
>> zmodload zsh/complist
> 
> You must "zmodload zsh/complist" before compinit.

Thank you wery much (:

When I was setting up zsh first time I have turned off auto_menu because
    it makes behavior like in bash.
Then I have knew about menu completion, and have decided to turn it on
after second <tab>. I've forgotten about auto_menu so I wrote simple widget:

zle -N my-tab
bindkey '\t' my-tab
my-tab(){
        if [[ $LASTWIDGET == $WIDGET ]]; then
                zle menu-select
        else
                zle expand-or-complete-prefix
        fi
}

And now I have two ways to do this:
1) my widget
2) zstyle ':completion:*' menu select=0
   with default auto_menu

-- 
sergio



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