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

Re: default pipe



Wayne Davison wrote:

> I too have some global aliases for simple pipe commands, but I have
> found it a little safer to use a short string of characters that is
> more unlikely to ever be a filename than a single capital letter.
> I have these that use a leading comma:
> 
> alias -g ,e='|egrep' ,f='|fgrep' ,g='|grep'

I tend to prefer bindkey -s instead of global aliases for such
sequences. It has the advantage that it is expanded so you can see what
it is going to do.

Oliver


This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.



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