Move mkcd() into OS-specific config dirs

This commit is contained in:
Eric Torres
2023-02-03 12:34:44 -08:00
parent 1ff982eac4
commit 7b47b78ac1
3 changed files with 22 additions and 9 deletions

View File

@ -1 +1,8 @@
# macOS-specific zsh configuration
# Make a directory, then change into it
mkcd() {
[[ ! -d "${1}" ]] && gmkdir --parents -- "${1}"
cd "${1}" || exit
}
autoload -Uz mkcd