From 500599cffc63fdd98aaf4bf8c67d627e23961785 Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Wed, 30 Nov 2011 12:49:06 +0100 Subject: [PATCH] zshrc: mcd -> mkcd Signed-off-by: Frank Terbeck --- doc/grmlzshrc.t2t | 2 +- etc/zsh/zshrc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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 -- 2.1.4