Use site-functions directory for all zsh plugins

This commit is contained in:
Eric Torres
2019-03-01 15:59:17 -08:00
parent fc101fb30b
commit 13257f07e6
10 changed files with 55 additions and 24 deletions

10
zsh/_mkcd Normal file
View File

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