Skip to content

Commit 17854a5

Browse files
committed
Improve removal of 'update_terminal_cwd'
Replace all instances. (For some reason, 2 are appearing in PROMPT_COMMAND) Don't match whitespace or semicolon. Replace with no-op command ':'.
1 parent 548630c commit 17854a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bashrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ HISTSIZE=10000
4545
# Remove call to update_terminal_cwd if it doesn't exist.
4646
# (it is defined by Mac OSX etc/bashrc, but not if terminal is screen)
4747
if [ "$(type -t update_terminal_cwd)" != function ]; then
48-
export PROMPT_COMMAND="${PROMPT_COMMAND/ update_terminal_cwd;/}"
48+
export PROMPT_COMMAND="${PROMPT_COMMAND//update_terminal_cwd/:}"
4949
fi
5050

5151
# Supress "An instance of Visual SlickEdit is already being displayed..."

0 commit comments

Comments
 (0)