From e019813dab428ca2717774da6949530f13c8a528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Sun, 23 Jun 2013 23:56:00 +0200 Subject: [PATCH] Remove update_terminal_cwd from _LP_OLD_PROMPT_COMMAND ... as we now have special handling for that feature of the terminal in _LP_TERM_IPDATE_DIR --- liquidprompt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/liquidprompt b/liquidprompt index 5a4eaa1..b31471c 100755 --- a/liquidprompt +++ b/liquidprompt @@ -363,7 +363,9 @@ fi # See http://hints.macworld.com/article.php?story=20110722211753852 if [[ "$TERM_PROGRAM" == Apple_Terminal ]] && command -v update_terminal_cwd >/dev/null; then _LP_TERM_UPDATE_DIR=update_terminal_cwd - [[ "$PROMPT_COMMAND" == update_terminal_cwd ]] && PROMPT_COMMAND= + # Remove "update_terminal_cwd; " that has been add by Apple in /et/bashrc. + # See issue #196 + PROMPT_COMMAND="${PROMPT_COMMAND//update_terminal_cwd; /}" else _LP_TERM_UPDATE_DIR=: fi