refactor: rename .zinit- to -zinit-

This commit is contained in:
Vladislav Doster 2022-12-07 00:22:28 -05:00
parent 1f761fa80c
commit a0c144b8e2

View file

@ -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