Last active
January 2, 2016 09:49
-
-
Save isGabe/8285158 to your computer and use it in GitHub Desktop.
mkdir + cd in a single 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 this in your .bash_profile, reload .bash_profile | |
# Type 'mkdircd [new-directory-name]' | |
# Rejoice | |
# Found here: http://linux.101hacks.com/cd-command/mkdir-and-cd-together/#comment-4 | |
# I shortened mine to 'mdcd' | |
function mkdircd () { mkdir -p "$@" && cd $_; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment