liquidprompt: clean up

This commit is contained in:
Gabriel Ebner 2015-09-20 09:43:13 +02:00
parent 033e850a75
commit 508833c620
2 changed files with 2 additions and 2 deletions

2
bashrc
View File

@ -13,8 +13,8 @@ HISTSIZE=100000
HISTFILE=~/.bash_history
shopt -s histappend
PROMPT_COMMAND="history -a; history -c; history -r"
. ~/etc/liquidprompt/liquidprompt
PROMPT_COMMAND="$PROMPT_COMMAND; history -a; history -c; history -r"
shopt -s autocd

View File

@ -49,7 +49,7 @@ LP_TITLE="$(_lp_title "$LP_PS1")"
# Insert it in the prompt
LP_PS1="${LP_TITLE}${LP_PS1}"
if [ -n "${IN_NIX_SHELL}" ]; then
if [[ -n "${IN_NIX_SHELL}" ]]; then
LP_PS1="${LP_COLOR_NIX_SHELL}[nix-shell]${NO_COL} ${LP_PS1}"
fi