[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Handy Bash alias script



On 1/19/07, cassiano <cassianoleal@gmail.com> wrote:
Why not just

$ echo alias aliasname=\"alias commands\" >> ~/.bashrc

Well, that would require typing that entire command manually every
time.  The idea is to have an alias that makes new aliases.  If you
had this in your .bashrc:

alias newalias="echo alias aliasname=\"alias commands\" >> ~/.bashrc"

...how would you then type something like:

$ newalias aliasname "alias command"

...and have it work?  Aliases don't support $1 or $@, do they?



Reply to: