title: vi .bash_profile function mkdircd
body: <pre><code># vi .bash_profile
  function mkdircd () { mkdir -p "$@" &amp;&amp; eval cd "\"\$$#\"";
  }
  </code></pre>
  
  <p>I gave the above command in <em>.bash_profile</em> <br />
  But when I am typing <code>mkdircd new_directory</code> into the terminal I am getting following error</p>
  
  <pre><code>mkdircd: command not found
  </code></pre>