From c078b9677bc81e15a1d81d29150893df09043be3 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 21 Mar 2009 22:48:57 +0100 Subject: Added mkcd function (mkdir $1 && cd $1) --- etc/functions/mkcd | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 etc/functions/mkcd diff --git a/etc/functions/mkcd b/etc/functions/mkcd new file mode 100755 index 0000000..553c90e --- /dev/null +++ b/etc/functions/mkcd @@ -0,0 +1,7 @@ +## vim:ft=zsh +typeset -i ls=0 +[[ -d $1 ]] && ls=1 +mkdir -p $1 +cd $1 +((ls)) && ls +true -- cgit v1.2.3