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

Re: Remove = in alias completion



Hallo Mikael,

Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> On Tue, 2 Sep 2008, Jörg Sommer wrote:
>
>> I find it anoying to enter ‘alias gd<TAB>’, get ‘alias gdb=’ and if I hit
>> return to see the definition of the alias, it gets cleared. So I propose
>> this patch.
>>
>
> This is probably what you meant, pasting wordcolor diffs in emails 
> generally doesn't work out well :).

Yes, I was to hasty.

> --- a/Completion/Zsh/Command/_alias
> +++ b/Completion/Zsh/Command/_alias
> @@ -19,6 +19,6 @@ if [[ -n "$state" ]]; then
>      compset -S '=*' || suf='='
>      type=( ${opt_args[(i)[-+][grs]]#?} )
>      (( $#type )) && type=( -s $type )
> -    _wanted -x alias expl 'alias definition' _aliases -S "$suf" "$type[@]"
> +    _wanted -x alias expl 'alias definition' _aliases -qS "$suf" "$type[@]"
>    fi
>  fi

Bye, Jörg.
-- 
But in the case of "git revert", it should be an ancestor (or the user
is just insane, in which case it doesn't matter - insane people can do
insane things)
Linus Torvalds <alpine.LFD.1.00.0801041031590.2811@xxxxxxxxxxxxxxxxxxxxxxxxxx>



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