-
-
Save timander/521384 to your computer and use it in GitHub Desktop.
makes a directory and changes to it
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
# makes a directory and changes to it | |
function md { | |
if (( ${#} == 1 )); then | |
mkdir -p "${1}" || return 1; # return error | |
cd "${1}"; | |
else | |
echo usage: md \"folder\"; | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment