diff --git a/gitcrux.theme b/gitcrux.theme index d3c0157..e83971a 100644 --- a/gitcrux.theme +++ b/gitcrux.theme @@ -412,6 +412,11 @@ gitcrux() { _lp_gitcrux_theme_activate() { _lp_default_theme_activate + if ! _lp_version_greatereq 2 2 0 ; then + _lp_join "." ${_LP_VERSION[@]} + printf "WARNING: the GitCrux 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 + GITCRUX_ARROW_RIGHT=( ${GITCRUX_ARROW_RIGHT[@]+"${GITCRUX_ARROW_RIGHT[@]}"} ) [[ ${#GITCRUX_ARROW_RIGHT[@]} == 0 ]] && GITCRUX_ARROW_RIGHT=( "" "" )