pyenv: skip lines that start with "#" (#1376)

pull/1415/head
Roman Perepelitsa 4 years ago
parent 69d3650958
commit f774df6c76

@ -4154,7 +4154,7 @@ function _p9k_read_pyenv_like_version_file() {
[[ -n $fd ]] && exec {fd}>&- [[ -n $fd ]] && exec {fd}>&-
} }
local MATCH local MATCH
local versions=(${(@)${(f)content}/(#m)*/${MATCH[(w)1]#$2}}) local versions=(${${${${(f)content}/(#m)*/${MATCH[(w)1]}}##\#*}#$2})
_p9k__ret=${(j.:.)versions} _p9k__ret=${(j.:.)versions}
_p9k__read_pyenv_like_version_file_cache[$1:$2]=$stat[1]:$_p9k__ret _p9k__read_pyenv_like_version_file_cache[$1:$2]=$stat[1]:$_p9k__ret
fi fi

Loading…
Cancel
Save