From fe668a76a3b42959d95e52acf9d1ce525ef720be Mon Sep 17 00:00:00 2001 From: nojhan Date: Mon, 30 Oct 2023 09:32:55 +0100 Subject: [PATCH] feat: adds version guard --- solid.theme | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/solid.theme b/solid.theme index 678690e..75f9bfa 100644 --- a/solid.theme +++ b/solid.theme @@ -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"