mirror of
https://github.com/zdharma-continuum/zinit-annex-rust.git
synced 2026-09-10 04:36:14 -04:00
refactor: rename .zinit- to -zinit-
This commit is contained in:
parent
1f761fa80c
commit
a0c144b8e2
|
|
@ -19,7 +19,7 @@ fi
|
|||
|
||||
local nl=$'\n'
|
||||
|
||||
# FUNCTION: .zinit-annex-rust-download-file-stdout [[[
|
||||
# FUNCTION: _zi::-annex-rust-download-file-stdout [[[
|
||||
# Downloads file to stdout. Supports following backend commands:
|
||||
# curl, wget, lftp, lynx. Used by snippet loading.
|
||||
.zinit-annex-rust-download-file-stdout() {
|
||||
|
|
@ -53,7 +53,7 @@ local nl=$'\n'
|
|||
elif type lftp 2>/dev/null 1>&2; then
|
||||
command lftp -c "cat $url" || return 1
|
||||
else
|
||||
.zinit-annex-rust-download-file-stdout "$url" "1"
|
||||
_zi::-annex-rust-download-file-stdout "$url" "1"
|
||||
return $?
|
||||
fi
|
||||
fi
|
||||
|
|
@ -69,9 +69,9 @@ if (( ${+ICE[rustup]} )) {
|
|||
return 1
|
||||
}
|
||||
command mkdir -p bin rustup
|
||||
.zinit-annex-rust-download-file-stdout 'https://sh.rustup.rs' 0 >! bin/rustup-init || \
|
||||
_zi::-annex-rust-download-file-stdout 'https://sh.rustup.rs' 0 >! bin/rustup-init || \
|
||||
{
|
||||
.zinit-annex-rust-download-file-stdout 'https://sh.rustup.rs' 1 >! bin/rustup-init || \
|
||||
_zi::-annex-rust-download-file-stdout 'https://sh.rustup.rs' 1 >! bin/rustup-init || \
|
||||
{
|
||||
print -P -- "%F{38}rust annex: %F{198}Couldn't download the %F{220}rustup.rs%F{198} installer%f"
|
||||
return 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue