diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2020-02-07 13:46:08 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2020-02-07 13:46:08 +0300 |
commit | 59f8d186b6be74d43fc5820f063afb27ca2b806c (patch) | |
tree | e6bcc8e6b306c65e45917c40196606db3e69df9f /internal/p10k.zsh | |
parent | 8be5750ccc032ca05311b551b4494764df0a5765 (diff) |
add POWERLEVEL9K_ASDF_${plugin}_SHOW_SYSTEM with fallback to POWERLEVEL9K_ASDF_SHOW_SYSTEM
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r-- | internal/p10k.zsh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index c26cb4d5..c6682288 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -4737,6 +4737,18 @@ function prompt_asdf() { fi fi + if [[ $version == system ]]; then + var=POWERLEVEL9K_ASDF_${upper}_SHOW_SYSTEM + if (( $+parameters[$var] )); then + [[ ${(P)var} == true ]] || continue + else + var=POWERLEVEL9K_ASDF_SHOW_SYSTEM + if (( $+parameters[$var] )); then + [[ ${(P)var} == true ]] || continue + fi + fi + fi + _p9k_get_icon $0_$upper ${upper}_ICON $plugin _p9k_prompt_segment $0_$upper green $_p9k_color1 $'\1'$_p9k_ret 0 '' ${version//\%/%%} done |