Skip to content

Instantly share code, notes, and snippets.

@tbielawa
Created March 30, 2013 03:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tbielawa/5275129 to your computer and use it in GitHub Desktop.
Save tbielawa/5275129 to your computer and use it in GitHub Desktop.
A handy-dandy shell function to make a directory and change into it in one command
# Place into your .zshrc or .bashrc file
function cdmkdir() {
# $1 = the directory you want to create and then change into
mkdir -p ${1} && cd ${1}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment