2019-03-01 19:30:48 -08:00

9 lines
144 B
Bash

# Make a directory, then change into it
mkcd() {
[[ ! -d "${1}" ]] && mkdir --parents -- "${1}"
cd "${1}" || exit
}
autoload -Uz mkcd