This commit is contained in:
Alexander Madyankin 2015-09-05 08:54:29 +00:00
commit 02a5d7f9ca

View file

@ -2,8 +2,12 @@
# based on this answer: http://superuser.com/a/315029
# 2012-10-26: (javageek) Changed code using the updated answer
# Tell the terminal about the working directory whenever it changes.
if [[ "$TERM_PROGRAM" == "Apple_Terminal" ]] && [[ -z "$INSIDE_EMACS" ]]; then
# 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.
if [[ "$TERM_PROGRAM" == "Apple_Terminal" ]] && [[ -z "$INSIDE_EMACS" ]]; then
update_terminal_cwd() {
# Identify the directory using a "file:" scheme URL, including
# the host name to disambiguate local vs. remote paths.
@ -36,4 +40,7 @@ if [[ "$TERM_PROGRAM" == "Apple_Terminal" ]] && [[ -z "$INSIDE_EMACS" ]]; then
# Tell the terminal about the initial directory.
update_terminal_cwd
fi
fi