Created
March 30, 2013 03:04
-
-
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
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
# 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