feat: adds version guard
This commit is contained in:
parent
4422a8dce2
commit
fe668a76a3
1 changed files with 5 additions and 0 deletions
|
|
@ -1,5 +1,10 @@
|
||||||
_lp_solid_theme_activate() {
|
_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
|
local lp_terminal_format
|
||||||
lp_terminal_format 63 -1 0 0 4 0
|
lp_terminal_format 63 -1 0 0 4 0
|
||||||
SP_COLOR_BASE="$lp_terminal_format"
|
SP_COLOR_BASE="$lp_terminal_format"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue