From: Frank Terbeck Date: Wed, 30 Nov 2011 11:49:06 +0000 (+0100) Subject: zshrc: mcd -> mkcd X-Git-Tag: v0.5.0~25 X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=500599cffc63fdd98aaf4bf8c67d627e23961785 zshrc: mcd -> mkcd Signed-off-by: Frank Terbeck --- diff --git a/doc/grmlzshrc.t2t b/doc/grmlzshrc.t2t index d10e0db..631fc80 100644 --- a/doc/grmlzshrc.t2t +++ b/doc/grmlzshrc.t2t @@ -565,7 +565,7 @@ environment variables to UTF-8. : **isutfenv()** Returns true, if run within an utf environment, else false. -: **mcd()** +: **mkcd()** Creates directory including parent directories, if necessary. Then changes current working directory to it. diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index ef4b3a9..894eb88 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -2365,9 +2365,10 @@ cd() { } #f5# Create Directoy and \kbd{cd} to it -mcd() { +mkcd() { mkdir -p "$@" && cd "$@" } + #f5# Create temporary directory and \kbd{cd} to it cdt() { local t