Enable passing multiple directories to take (#6900)

* enable passing multiple directories to take

* Update take function

Do not call cd if mkdir fails
This commit is contained in:
sam-lunt 2018-07-02 10:05:24 -05:00 committed by Marc Cornellà
parent 9711d8f731
commit 7cba6bb038

View file

@ -11,8 +11,7 @@ function upgrade_oh_my_zsh() {
} }
function take() { function take() {
mkdir -p $1 mkdir -p $@ && cd ${@:$#}
cd $1
} }
function open_command() { function open_command() {