3 ms·
I use the version at http://onethingwell.org/post/586977440/mkcd-improved http://onethingwell.org/post/586977440/mkcd-improved, called `mkcd`. # mkdir, cd in
by roryokane 13y ago
I use the version at http://onethingwell.org/post/586977440/mkcd-improved http://onethingwell.org/post/586977440/mkcd-improved, called `mkcd`.
# mkdir, cd into it
mkcd () {
mkdir -p "$*"
cd "$*"
}
Just copy and paste that at the end of your `.bashrc` or `.zshrc` file. You may also want to include this comment above it so you know why it’s written like that:
# from http://onethingwell.org/post/586977440/mkcd-improved