diff options
author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2021-05-22 13:19:41 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2021-05-22 13:19:41 +0300 |
commit | f774df6c76c3cf98d7740a00ef63d36e5a5cc0a7 (patch) | |
tree | 082eb010a678e299db851d47243aa92477663e0a /internal/p10k.zsh | |
parent | 69d3650958ce03d666f433792444290b7b2ffe5d (diff) |
pyenv: skip lines that start with "#" (#1376)
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r-- | internal/p10k.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 7d2ade70..767aca10 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -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 |