Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: segmentation fault in menu-select
- X-seq: zsh-workers 25118
- From: sergio <zsh@xxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: segmentation fault in menu-select
- Date: Thu, 29 May 2008 18:47:50 +0400
- In-reply-to: <a0600107fc464392dd78f@xxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <48299A33.9070002@xxxxxxxxxxxxx> <a0600107fc464392dd78f@xxxxxxxxxxxxxxxxx>
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