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:
@@ -23,7 +23,7 @@ bwpwd() {
|
|||||||
# mkdir wrapper that changes into the created directory if only one was given
|
# mkdir wrapper that changes into the created directory if only one was given
|
||||||
mkcd () {
|
mkcd () {
|
||||||
# Create directory
|
# Create directory
|
||||||
mkdir "$@" || return
|
command mkdir "$@" || return
|
||||||
|
|
||||||
# Remove flags and their arguments
|
# Remove flags and their arguments
|
||||||
nargs="$#"
|
nargs="$#"
|
||||||
|
|||||||
Reference in New Issue
Block a user