Merge pull request #642 from cs-networks/master

Fix issue with last exit status getting swallowed.
pull/692/head
Travis Swicegood 2016-03-25 15:13:16 -05:00
commit 39cbb70cc5
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ about-plugin 'osx-specific functions'
if [ $(uname) = "Darwin" ]; then
if type update_terminal_cwd > /dev/null 2>&1 ; then
if ! [[ $PROMPT_COMMAND =~ (^|;)update_terminal_cwd($|;) ]] ; then
export PROMPT_COMMAND="update_terminal_cwd;$PROMPT_COMMAND"
export PROMPT_COMMAND="$PROMPT_COMMAND;update_terminal_cwd"
fi
fi
fi