From 87d56a95b42846abd3a08f26dfdda12c259d8787 Mon Sep 17 00:00:00 2001 From: vrtcl1dvoshun Date: Wed, 22 May 2013 17:02:14 -0500 Subject: [PATCH] Changed mkdcd to mcd `mcd` is much easier (to me, at least) to type and remember than mkdcd and hasn't (in my experience) gotten in the way of anything else I've needed to use. [ticket: X] --- modules/utility/README.md | 2 +- modules/utility/init.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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" }