[Cool trick] Shortcut to mkdir and cd to it!

[Cool trick] Shortcut to mkdir and cd to it!

Append following code to /$HOME/.bashrc


function mkdir{
  command mkdir $1 && cd $1
}

Then, execute .bashrc

source ~/.bashrc

Share: Share on Twitter Share on Facebook Share on LinkedIn Reddit
Continue Reading

Comments are provided by Disqus and load only when requested.

The Mailchimp signup integration loads only when requested.