title: How can I define a bash alias as a sequence of multiple commands?
body: <p>I know how to configure aliases in bash, but is there a way to configure an alias for a sequence of commands?</p>
  
  <p>I.e say I want one command to change to a particular directory, then run another command.</p>
  
  <p>In addition, is there a way to setup a command that runs "sudo mycommand", then enters the password? In the MS-DOS days I'd be looking for a .bat file but I'm unsure of the linux (or in this case Mac OSX) equivalent.</p>