Skip to content

Instantly share code, notes, and snippets.

@mikbe
Created March 8, 2011 14:59
Show Gist options
  • Save mikbe/860368 to your computer and use it in GitHub Desktop.
Save mikbe/860368 to your computer and use it in GitHub Desktop.
Bash: Make a directory and change into it in one easy command
#!/bin/bash
# You should add this to your .profile file
md () { mkdir -p "$@" && cd "$@"; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment