Fix more quoting shit, to fix LP_ENABLE_TITLE

This commit is contained in:
Olivier Mengué 2013-12-27 19:08:21 +01:00
parent 3a54eaa881
commit 10a3ecb17c

View File

@ -1482,7 +1482,7 @@ _lp_as_text()
# pst=$(echo $pst | sed "s,\\\\\\[\|\\\\\\],,g")
local op="$(printf "%q" "$_LP_OPEN_ESC")"
local cl="$(printf "%q" "$_LP_CLOSE_ESC")"
pst="$(echo $pst | sed "s,$op\|$cl,,g")" # replace all open _or_ close tags with nothing
pst="$(echo "$pst" | sed "s,$op\|$cl,,g")" # replace all open _or_ close tags with nothing
echo -n "$pst"
}
@ -1722,7 +1722,7 @@ _lp_set_prompt()
source "$LP_PS1_FILE"
fi
if [[ -z $LP_PS1 ]] ; then
if [[ -z "$LP_PS1" ]] ; then
# add title escape time, jobs, load and battery
PS1="${LP_PS1_PREFIX}${LP_TIME}${LP_BATT}${LP_LOAD}${LP_TEMP}${LP_JOBS}"
# add user, host and permissions colon