1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-23 12:40:08 +00:00

when looking for .fvm/flutter_sdk, require that the last segment is a symlink rather than .fvm (#2573)

This commit is contained in:
Roman Perepelitsa 2024-02-15 15:32:29 +01:00
parent 8e2a22d80b
commit 17cd9e354a

View file

@ -1314,7 +1314,7 @@ function _p9k_fvm_old() {
} }
function _p9k_fvm_new() { function _p9k_fvm_new() {
_p9k_upglob .fvm @ && return 1 _p9k_upglob .fvm/flutter_sdk @ && return 1
local sdk=$_p9k__parent_dirs[$?]/.fvm/flutter_sdk local sdk=$_p9k__parent_dirs[$?]/.fvm/flutter_sdk
if [[ ${sdk:A} == (#b)*/versions/([^/]##) ]]; then if [[ ${sdk:A} == (#b)*/versions/([^/]##) ]]; then
_p9k_prompt_segment prompt_fvm blue $_p9k_color1 FLUTTER_ICON 0 '' ${match[1]//\%/%%} _p9k_prompt_segment prompt_fvm blue $_p9k_color1 FLUTTER_ICON 0 '' ${match[1]//\%/%%}
@ -9472,7 +9472,7 @@ if [[ $__p9k_dump_file != $__p9k_instant_prompt_dump_file && -n $__p9k_instant_p
zf_rm -f -- $__p9k_instant_prompt_dump_file{,.zwc} 2>/dev/null zf_rm -f -- $__p9k_instant_prompt_dump_file{,.zwc} 2>/dev/null
fi fi
typeset -g P9K_VERSION=1.20.2 typeset -g P9K_VERSION=1.20.3
unset VSCODE_SHELL_INTEGRATION unset VSCODE_SHELL_INTEGRATION
_p9k_init_ssh _p9k_init_ssh