mirror of
https://github.com/romkatv/powerlevel10k
synced 2025-01-11 08:29:28 +00:00
pyenv: skip lines that start with "#" (#1376)
This commit is contained in:
parent
69d3650958
commit
f774df6c76
@ -4154,7 +4154,7 @@ function _p9k_read_pyenv_like_version_file() {
|
||||
[[ -n $fd ]] && exec {fd}>&-
|
||||
}
|
||||
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__read_pyenv_like_version_file_cache[$1:$2]=$stat[1]:$_p9k__ret
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user