Fix #2416 in terminalapp plugin

This commit is contained in:
Alexander Madyankin 2014-07-05 20:28:45 +06:00
commit c34221e821

View file

@ -2,6 +2,10 @@
# based on this answer: http://superuser.com/a/315029 # based on this answer: http://superuser.com/a/315029
# 2012-10-26: (javageek) Changed code using the updated answer # 2012-10-26: (javageek) Changed code using the updated answer
# Run only on OS X < 10.9 because the whole functionality has been replaced by Mavericks natively.
# https://github.com/robbyrussell/oh-my-zsh/issues/2416
if [[ "$(uname)" == "Darwin" ]] && [[ "$(uname -r | cut -d . -f 1)" -lt 13 ]]; then
# Tell the terminal about the working directory whenever it changes. # Tell the terminal about the working directory whenever it changes.
if [[ "$TERM_PROGRAM" == "Apple_Terminal" ]] && [[ -z "$INSIDE_EMACS" ]]; then if [[ "$TERM_PROGRAM" == "Apple_Terminal" ]] && [[ -z "$INSIDE_EMACS" ]]; then
update_terminal_cwd() { update_terminal_cwd() {
@ -37,3 +41,6 @@ if [[ "$TERM_PROGRAM" == "Apple_Terminal" ]] && [[ -z "$INSIDE_EMACS" ]]; then
# Tell the terminal about the initial directory. # Tell the terminal about the initial directory.
update_terminal_cwd update_terminal_cwd
fi fi
fi