zsh:funcs:mkcd: Prevent recursion with command

Call the external command `mkdir` to prevent recursion through the alias
added in 7834a6bee2 ("zsh:alias: Alias `mkdir` to `mkcd`").
This commit is contained in:
2022-07-14 17:19:30 +02:00
parent bc7a539186
commit a38ac0e738

View File

@@ -23,7 +23,7 @@ bwpwd() {
# mkdir wrapper that changes into the created directory if only one was given
mkcd () {
# Create directory
mkdir "$@" || return
command mkdir "$@" || return
# Remove flags and their arguments
nargs="$#"