1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
From: Arturo Borrero Gonzalez <arturo@debian.org>
Subject: Prefix liquidprompt functions
This patch prefixes all public liquidprompt functions so the user know
what is all about.
.
A common namespace of commands starting with 'liquidprompt_*' is then
given to the user.
Forwarded: not-needed
Last-Update: 2021-10-30
Index: pkg-liquidprompt/liquidprompt
===================================================================
--- pkg-liquidprompt.orig/liquidprompt 2022-08-10 13:50:17.105336136 +0200
+++ pkg-liquidprompt/liquidprompt 2022-08-10 13:51:23.435108984 +0200
@@ -710,7 +710,7 @@
if [[ -n ${_LP_THEME_ACTIVATE_FUNCTION-} ]]; then
# Reactivate current theme
"$_LP_THEME_ACTIVATE_FUNCTION"
- prompt_on
+ liquidprompt_on
else
# Set default theme if no theme set
lp_theme default
@@ -3488,7 +3488,7 @@
}
-prompt_tag() {
+liquidprompt_tag() {
if [[ -n "${1-}" ]]; then
export LP_PS1_PREFIX="$1 "
else
@@ -3497,7 +3497,7 @@
}
# Activate Liquid Prompt
-prompt_on() {
+liquidprompt_on() {
# Reset so all PWD dependent variables are computed after loading
LP_OLD_PWD=""
@@ -3662,7 +3662,7 @@
}
# Come back to the old prompt
-prompt_off() {
+liquidprompt_off() {
__lp_disable_hooks
PS1=$LP_OLD_PS1
@@ -3678,7 +3678,7 @@
}
# Use an empty prompt: just the \$ mark
-prompt_OFF() {
+liquidprompt_OFF() {
__lp_disable_hooks
PS1="$_LP_MARK_SYMBOL "
@@ -3720,7 +3720,7 @@
_LP_THEME_PROMPT_FUNCTION=$f_prompt
"$f_activate"
- prompt_on
+ liquidprompt_on
}
# By default, sourcing liquidprompt will activate Liquid Prompt
|