mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-21 20:00:07 +00:00
pyenv: skip lines that start with "#" (#1376)
This commit is contained in:
parent
69d3650958
commit
f774df6c76
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue