mkdir + autocd zsh function
zsh function to create directories and autocd into the leaf
mkc () {
mkdir -p "$@" && cd "$@"
}
Example:
$ mkc foo/bar/baz/bif
Written by Seth Brown
Related protips
2 Responses
Works as a charm on 5.0.2. Thanks!
over 1 year ago
·
Thank you so much! I've been searching everywhere for something that actually works on my zsh, and this is the only one.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Zsh
Authors
Related Tags
#zsh
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#