问题
I want to have an alias which will do:
>>>cd $MYUSR
>>>bin/start.sh -t
How can I set it? I use bash shell.
Best Regards
回答1:
What's wrong with the obvious?
alias example='cd $MYUSR ; ./bin/start.sh -t'
To make it permanent you can add it to ~/.bashrc
来源:https://stackoverflow.com/questions/10008648/how-to-set-an-alias-so-that-it-will-change-directory-and-run-a-sh-file