mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-12 20:21:02 +01:00
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:
parent
9711d8f731
commit
7cba6bb038
1 changed files with 1 additions and 2 deletions
|
@ -11,8 +11,7 @@ function upgrade_oh_my_zsh() {
|
|||
}
|
||||
|
||||
function take() {
|
||||
mkdir -p $1
|
||||
cd $1
|
||||
mkdir -p $@ && cd ${@:$#}
|
||||
}
|
||||
|
||||
function open_command() {
|
||||
|
|
Loading…
Reference in a new issue