mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
Merge 867d2e0196 into f1934d2c76
This commit is contained in:
commit
28be2586ae
1 changed files with 6 additions and 0 deletions
|
|
@ -50,6 +50,10 @@ function mkcd takedir() {
|
|||
mkdir -p $@ && cd ${@:$#}
|
||||
}
|
||||
|
||||
function taketmp() {
|
||||
cd $(mktemp -d)
|
||||
}
|
||||
|
||||
function takeurl() {
|
||||
local data thedir
|
||||
data="$(mktemp)"
|
||||
|
|
@ -82,6 +86,8 @@ function take() {
|
|||
takezip "$1"
|
||||
elif [[ $1 =~ ^([A-Za-z0-9]\+@|https?|git|ssh|ftps?|rsync).*\.git/?$ ]]; then
|
||||
takegit "$1"
|
||||
elif [[ "$1" == "" ]]; then
|
||||
taketmp
|
||||
else
|
||||
takedir "$@"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue