Macports does what I want (?) not what I say
Ryan Schmidt
ryandesign at macports.org
Thu Jul 4 07:08:28 PDT 2013
On Jul 4, 2013, at 09:01, Rainer Müller wrote:
> I want to share an unobvious feature
> of bash with you that helps in situations like this. Quoting the man page:
>
> If the last character of the alias value is a blank, then the next
> command word following the alias is also checked for alias expansion.
>
> Therefore, add the following to your .bashrc:
>
> alias sudo='sudo '
>
> The space at the end tells bash to look up aliases for the next word.
> This means that typing "sudo foo" will lead to 'foo' being looked up as
> a shell alias.
Thank you so much! I've wanted this for a long time. Never knew it was possible.
More information about the macports-users
mailing list