mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
Fix #2416 in terminalapp plugin
This commit is contained in:
parent
5728a5608d
commit
c34221e821
1 changed files with 37 additions and 30 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue