Update osx.plugin.bash

pull/913/head
Adam Kuśmierz 2017-02-25 11:44:59 +01:00 committed by GitHub
parent 9a397645b4
commit d2fa45f0b6
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ about-plugin 'osx-specific functions'
# OS X: Open new tabs in same directory # OS X: Open new tabs in same directory
if [ $(uname) = "Darwin" ]; then if [ $(uname) = "Darwin" ]; then
if type update_terminal_cwd > /dev/null 2>&1 ; then if type update_terminal_cwd > /dev/null 2>&1 ; then
if ! [[ $PROMPT_COMMAND =~ (^|;|\s)update_terminal_cwd($|;|\s) ]] ; then if ! [[ $PROMPT_COMMAND =~ (^|;| )update_terminal_cwd($|;| ) ]] ; then
export PROMPT_COMMAND="$PROMPT_COMMAND;update_terminal_cwd" export PROMPT_COMMAND="$PROMPT_COMMAND;update_terminal_cwd"
fi fi
fi fi