mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
*install,*autoload: Show the gh-r version on update
This commit is contained in:
parent
41e85f9e8d
commit
a80e2a58d8
|
|
@ -1427,8 +1427,9 @@ ZPLGM[EXTENDED_GLOB]=""
|
|||
if [[ -n "${ice[is_release]}" ]] {
|
||||
(( ${+functions[-zplg-setup-plugin-dir]} )) || builtin source ${ZPLGM[BIN_DIR]}"/zplugin-install.zsh"
|
||||
-zplg-get-latest-gh-r-version "$user" "$plugin"
|
||||
if [[ "${ice[is_release]}" = */$REPLY/* ]] {
|
||||
[[ "${ICE_OPTS[opt_-q,--quiet]}" != 1 ]] && \
|
||||
local version=$REPLY
|
||||
if [[ ${ice[is_release]} = */$version/* ]] {
|
||||
(( !ICE_OPTS[opt_-q,--quiet] )) && \
|
||||
print -- "\rBinary release already up to date (version: $REPLY)"
|
||||
skip_pull=1
|
||||
(( ${+ice[run-atpull]} )) && { do_update=1; }
|
||||
|
|
@ -1464,7 +1465,7 @@ ZPLGM[EXTENDED_GLOB]=""
|
|||
-zplg-any-colorify-as-uspl2 "$id_as"
|
||||
print "\nUpdating plugin $REPLY"
|
||||
}
|
||||
-zplg-setup-plugin-dir "$user" "$plugin" "$id_as" release -u
|
||||
-zplg-setup-plugin-dir "$user" "$plugin" "$id_as" release -u $version
|
||||
if (( ICE_OPTS[opt_-q,--quiet] != 1 )) {
|
||||
print
|
||||
}
|
||||
|
|
|
|||
|
|
@ -284,7 +284,8 @@ builtin source ${ZPLGM[BIN_DIR]}"/zplugin-side.zsh"
|
|||
setopt extendedglob warncreateglobal noshortloops rcquotes
|
||||
|
||||
local user=$1 plugin=$2 id_as=$3 remote_url_path=${1:+$1/}$2 \
|
||||
local_path=${ZPLGM[PLUGINS_DIR]}/${3//\//---} tpe=$4 update=$5
|
||||
local_path=${ZPLGM[PLUGINS_DIR]}/${3//\//---} tpe=$4 update=$5 \
|
||||
version=$6
|
||||
|
||||
local -A sites
|
||||
sites=(
|
||||
|
|
@ -366,7 +367,7 @@ builtin source ${ZPLGM[BIN_DIR]}"/zplugin-side.zsh"
|
|||
(
|
||||
() { setopt localoptions noautopushd; builtin cd -q "$local_path"; } || return 1
|
||||
url="https://github.com${list[1]}"
|
||||
print "(Requesting \`${list[1]:t}'...)"
|
||||
print "(Requesting \`${list[1]:t}'${version:+, version $version}...)"
|
||||
-zplg-download-file-stdout "$url" >! "${list[1]:t}" || {
|
||||
-zplg-download-file-stdout "$url" 1 >! "${list[1]:t}" || {
|
||||
command rm -f "${list[1]:t}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue