liquidprompt: only enable title in screen

This commit is contained in:
Gabriel Ebner 2016-01-06 18:02:33 +01:00
parent 41c4fff96f
commit c32a591b67
1 changed files with 3 additions and 1 deletions

View File

@ -47,7 +47,9 @@ LP_PS1="${LP_PS1}${LP_RUNTIME}${LP_ERR}${LP_MARK_PREFIX}${LP_MARK}${LP_PS1_POSTF
LP_TITLE="$(_lp_title "$LP_PS1")"
# Insert it in the prompt
LP_PS1="${LP_TITLE}${LP_PS1}"
if [[ "$TERM" == "screen*" ]]; then
LP_PS1="${LP_TITLE}${LP_PS1}"
fi
if [[ -n "${IN_NIX_SHELL}" ]]; then
LP_PS1="${LP_COLOR_NIX_SHELL}[nix-shell]${NO_COL} ${LP_PS1}"