diff --git a/modules/utility/README.md b/modules/utility/README.md index ebcc43c5..893c8d5f 100644 --- a/modules/utility/README.md +++ b/modules/utility/README.md @@ -126,7 +126,7 @@ Functions - `cdls` changes to a directory and lists its contents. - `dut` displays the grand total disk usage using human readable units. - `find-exec` finds files and executes a command on them. - - `mkdcd` makes a directory and changes to it. + - `mcd` makes a directory and changes to it. - `popdls` pops an entry off the directory stack and lists its contents. - `pushdls` pushes an entry onto the directory stack and lists its contents. diff --git a/modules/utility/init.zsh b/modules/utility/init.zsh index ea31138c..525ad780 100644 --- a/modules/utility/init.zsh +++ b/modules/utility/init.zsh @@ -144,7 +144,7 @@ alias http-serve='python -m SimpleHTTPServer' # # Makes a directory and changes to it. -function mkdcd { +function mcd { [[ -n "$1" ]] && mkdir -p "$1" && builtin cd "$1" }