mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-06-05 05:03:16 +02:00
Update take function
Do not call cd if mkdir fails
This commit is contained in:
parent
e28010320a
commit
987d265c41
1 changed files with 1 additions and 2 deletions
|
|
@ -11,8 +11,7 @@ function upgrade_oh_my_zsh() {
|
|||
}
|
||||
|
||||
function take() {
|
||||
mkdir -p $@
|
||||
cd ${@:$#}
|
||||
mkdir -p $@ && cd ${@:$#}
|
||||
}
|
||||
|
||||
function open_command() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue