11 lines
192 B
Plaintext
11 lines
192 B
Plaintext
#compdef mkcd
|
|
# Make a directory, then change into it
|
|
|
|
# ========== Shortcuts ==========
|
|
mkcd() {
|
|
[[ ! -d "${1}" ]] && mkdir --parents -- "${1}"
|
|
cd "${1}" || exit
|
|
}
|
|
|
|
autoload -Uz mkcd
|