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
This commit is contained in:
Olivier Mengué 2013-06-23 23:56:00 +02:00
parent d4275c1312
commit e019813dab

View File

@ -363,7 +363,9 @@ fi
# See http://hints.macworld.com/article.php?story=20110722211753852 # See http://hints.macworld.com/article.php?story=20110722211753852
if [[ "$TERM_PROGRAM" == Apple_Terminal ]] && command -v update_terminal_cwd >/dev/null; then if [[ "$TERM_PROGRAM" == Apple_Terminal ]] && command -v update_terminal_cwd >/dev/null; then
_LP_TERM_UPDATE_DIR=update_terminal_cwd _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 else
_LP_TERM_UPDATE_DIR=: _LP_TERM_UPDATE_DIR=:
fi fi