From 9430177c831ffe68faede2cd6bf021cf642198f8 Mon Sep 17 00:00:00 2001 From: cdoenges Date: Sat, 1 Apr 2023 13:34:19 +0200 Subject: [PATCH] Update for liquidprompt v2.0 In v2.0 (the current version) of liquidprompt, the function `_lp_escape()` was renamed to `__lp_escape()`. --- themes/liquidprompt/liquidprompt.theme.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/liquidprompt/liquidprompt.theme.bash b/themes/liquidprompt/liquidprompt.theme.bash index 60e64210c4..c458ad4af5 100644 --- a/themes/liquidprompt/liquidprompt.theme.bash +++ b/themes/liquidprompt/liquidprompt.theme.bash @@ -39,7 +39,7 @@ _lp_git_branch() # Recent versions of Git support the --short option for symbolic-ref, but # not 1.7.9 (Ubuntu 12.04) if branch="$(\git symbolic-ref -q HEAD)"; then - _lp_escape "$(\git rev-parse --short=5 -q HEAD 2>/dev/null):${branch#refs/heads/}" + __lp_escape "$(\git rev-parse --short=5 -q HEAD 2>/dev/null):${branch#refs/heads/}" else # In detached head state, use commit instead # No escape needed