1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-22 12:20:07 +00:00

fix fvm styling that has been broken by the last commit; fixes #645

This commit is contained in:
Roman Perepelitsa 2020-06-25 11:09:19 +02:00
parent 6a1e993a05
commit ae32fd58b3

View file

@ -1229,7 +1229,7 @@ function _p9k_fvm_old() {
local fvm=$_p9k__parent_dirs[$?]/fvm local fvm=$_p9k__parent_dirs[$?]/fvm
if [[ -L $fvm ]]; then if [[ -L $fvm ]]; then
if [[ ${fvm:A} == (#b)*/versions/([^/]##)/bin/flutter ]]; then if [[ ${fvm:A} == (#b)*/versions/([^/]##)/bin/flutter ]]; then
_p9k_prompt_segment $0 blue $_p9k_color1 FLUTTER_ICON 0 '' ${match[1]//\%/%%} _p9k_prompt_segment prompt_fvm blue $_p9k_color1 FLUTTER_ICON 0 '' ${match[1]//\%/%%}
return 0 return 0
fi fi
fi fi
@ -1241,7 +1241,7 @@ function _p9k_fvm_new() {
local sdk=$_p9k__parent_dirs[$?]/.fvm/flutter_sdk local sdk=$_p9k__parent_dirs[$?]/.fvm/flutter_sdk
if [[ -L $sdk ]]; then if [[ -L $sdk ]]; then
if [[ ${sdk:A} == (#b)*/versions/([^/]##) ]]; then if [[ ${sdk:A} == (#b)*/versions/([^/]##) ]]; then
_p9k_prompt_segment $0 blue $_p9k_color1 FLUTTER_ICON 0 '' ${match[1]//\%/%%} _p9k_prompt_segment prompt_fvm blue $_p9k_color1 FLUTTER_ICON 0 '' ${match[1]//\%/%%}
return 0 return 0
fi fi
fi fi