title: Alias definition of multiple commands after ssh
body: <p>I'm logging in and out of a remote machine many times a day (through ssh) and I'd like to shorten a bit the whole procedure. I've added an alias in my .bashrc and .profile that looks like:</p>
  
  <pre><code>alias connect='ssh -XC username@remotemachine &amp;&amp; cd /far/away/location/that/takes/time/to/get/to/;'
  </code></pre>
  
  <p>My problem is that when I write connect, I first get to the location in cause (on my local machine) and then the ssh connection takes place. How can this be? I've thought that by using "&amp;&amp;" the second command will be run only after the first one is successful. After the ssh command is successful, the .profile/.bashrc are loaded anew, before the second part of the alias is successfully executed? </p>