11 lines
192 B
Plaintext
Raw Normal View History

#compdef mkcd
2019-01-03 13:46:05 -08:00
# Make a directory, then change into it
# ========== Shortcuts ==========
2019-01-03 13:46:05 -08:00
mkcd() {
[[ ! -d "${1}" ]] && mkdir --parents -- "${1}"
cd "${1}" || exit
}
autoload -Uz mkcd