Created
March 8, 2011 14:59
-
-
Save mikbe/860368 to your computer and use it in GitHub Desktop.
Bash: Make a directory and change into it in one easy command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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