1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-11 00:00:06 +00:00

add POWERLEVEL9K_ASDF_${plugin}_SHOW_SYSTEM with fallback to POWERLEVEL9K_ASDF_SHOW_SYSTEM

This commit is contained in:
romkatv 2020-02-07 11:46:08 +01:00
parent 8be5750ccc
commit 59f8d186b6

View file

@ -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