Update take function

Do not call cd if mkdir fails
This commit is contained in:
sam-lunt 2018-06-30 16:37:10 -05:00 committed by GitHub
commit 987d265c41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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