From 508833c620814fed73ec8bbaba98a3ccaad09854 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Sun, 20 Sep 2015 09:43:13 +0200 Subject: [PATCH] liquidprompt: clean up --- bashrc | 2 +- liquid.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bashrc b/bashrc index 711cc96..4597e9b 100644 --- a/bashrc +++ b/bashrc @@ -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 diff --git a/liquid.ps1 b/liquid.ps1 index 927c8dc..2c86449 100644 --- a/liquid.ps1 +++ b/liquid.ps1 @@ -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