From e28010320aab81e6ff0f7cf66c8181262f94d67b Mon Sep 17 00:00:00 2001 From: sam-lunt Date: Thu, 7 Jun 2018 10:28:18 -0500 Subject: [PATCH] enable passing multiple directories to take --- lib/functions.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/functions.zsh b/lib/functions.zsh index 7410ae645..a0429382b 100644 --- a/lib/functions.zsh +++ b/lib/functions.zsh @@ -11,8 +11,8 @@ function upgrade_oh_my_zsh() { } function take() { - mkdir -p $1 - cd $1 + mkdir -p $@ + cd ${@:$#} } function open_command() {