Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save justingoldberg/0b5cfa34d60480344f1b8f7b3fe962b9 to your computer and use it in GitHub Desktop.

Select an option

Save justingoldberg/0b5cfa34d60480344f1b8f7b3fe962b9 to your computer and use it in GitHub Desktop.
Bash Function To Create Directory And Change To It In One Step
mcd() {
mkdir -p "$1" && cd "$1"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment