From a38ac0e738b4478dd06c7861cd1d70034e12fade Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Thu, 14 Jul 2022 17:19:30 +0200 Subject: [PATCH] zsh:funcs:mkcd: Prevent recursion with `command` Call the external command `mkdir` to prevent recursion through the alias added in 7834a6bee20c ("zsh:alias: Alias `mkdir` to `mkcd`"). --- .config/zsh/zshrc.d/40-functions.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/zsh/zshrc.d/40-functions.zsh b/.config/zsh/zshrc.d/40-functions.zsh index 222f435..8d39d1d 100644 --- a/.config/zsh/zshrc.d/40-functions.zsh +++ b/.config/zsh/zshrc.d/40-functions.zsh @@ -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="$#"