diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh index 83ffddeb3..b5c78367a 100644 --- a/plugins/osx/osx.plugin.zsh +++ b/plugins/osx/osx.plugin.zsh @@ -101,7 +101,7 @@ function trash() { IFS=$temp_ifs } -if [[ $TERM_PROGRAM == "Apple Terminal" ]] && [[ -z "$INSIDE_EMACS" ]] { +if [[ $TERM_PROGRAM == "Apple_Terminal" ]] && [[ -z "$INSIDE_EMACS" ]]; then autoload -U add-zsh-hook function lion_resume_chpwd { @@ -114,4 +114,4 @@ if [[ $TERM_PROGRAM == "Apple Terminal" ]] && [[ -z "$INSIDE_EMACS" ]] { } add-zsh-hook chpwd lion_resume_chpwd -} +fi