How I can create a batch alias for bash?
I need to do this:
cd /somefolder bundle exec unicorn -p 3000 rackup faye.ru -s thin -E production
rackup - this is 2 servers
for example I want bind
Bash functions are one method but I prefer to create separate scripts for things in my
Then shove your script in there (with a header) so it looks like this:
Then just call
It is a longer method than an alias or a bash function but I prefer it because it's a little more separable than munging things in with your other aliases. I won't blame you if you don't agree!
You don't want an alias; you want a bash function, which you can put in the same place as you put your aliases:
Call it like this: