mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-08-15 17:32:41 +02: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:
@ -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() {
|
||||||
|
Reference in New Issue
Block a user