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

Re: Menu completion on empty line



Bart Schaefer wrote on Sat, Nov 05, 2016 at 19:01:50 -0700:
>     alias rebuild='clean;build'

Tangent: it would be better to have braces here:

    alias rebuild='{ clean; build }'

This is in order for the alias to behave correctly inside control structures:

    % alias x='echo foo; echo bar'
    % repeat 2 x
    foo
    foo
    bar
    % alias x='{ echo foo; echo bar }'
    % repeat 2 x
    foo
    bar
    foo
    bar
    % 



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