fix(fvm): fix glob option to work

This commit is contained in:
RyuNen344 2023-07-18 06:50:59 +09:00 committed by GitHub
parent 932954a8b1
commit 36c7ca9570
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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