feat: adds version guard

This commit is contained in:
Johann Dreo 2023-10-30 09:32:55 +01:00
commit fe668a76a3

View file

@ -1,5 +1,10 @@
_lp_solid_theme_activate() {
if ! _lp_version_greatereq 2 2 0 ; then
_lp_join "." ${_LP_VERSION[@]}
printf "WARNING: the Solid theme requires Liquid Prompt >= 2.2.0, but you have version $lp_join, some features will not work and the prompt may crash.\n"
fi
local lp_terminal_format
lp_terminal_format 63 -1 0 0 4 0
SP_COLOR_BASE="$lp_terminal_format"