Pass Command Line Arguments To a Bash Alias Command

Posted on in Categories , , last updated April 7, 2012

How do I pass all command line args to my bash alias called foo. For example:

alias foo=”/path/to/command $@”

However $@ get interpreted when creating the alias instead of during the execution of the alias and escaping the $ doesn’t work either. How do I solve this problem?
Continue reading “Pass Command Line Arguments To a Bash Alias Command”