|
|
|
@ -91,34 +91,34 @@ if [[ "$TERM_PROGRAM" == 'Apple_Terminal' ]] \
|
|
|
|
|
&& ( ! [[ -n "$STY" || -n "$TMUX" || -n "$DVTM" ]] )
|
|
|
|
|
then
|
|
|
|
|
# Sets the Terminal.app current working directory before the prompt is
|
|
|
|
|
# displayed.
|
|
|
|
|
# displayed.
|
|
|
|
|
add-zsh-hook precmd _terminal-set-terminal-app-proxy-icon
|
|
|
|
|
|
|
|
|
|
# Unsets the Terminal.app current working directory when a terminal
|
|
|
|
|
# multiplexer or remote connection is started since it can no longer be
|
|
|
|
|
# Unsets the Terminal.app current working directory when a terminal
|
|
|
|
|
# multiplexer or remote connection is started since it can no longer be
|
|
|
|
|
# updated, and it becomes confusing when the directory displayed in the title
|
|
|
|
|
# bar is no longer synchronized with real current working directory.
|
|
|
|
|
function _terminal-unset-terminal-app-proxy-icon {
|
|
|
|
|
function _terminal-unset-terminal-app-proxy-icon {
|
|
|
|
|
if [[ "${2[(w)1]:t}" == (screen|tmux|dvtm|ssh|mosh) ]]; then
|
|
|
|
|
_terminal-set-terminal-app-proxy-icon ' '
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
add-zsh-hook preexec _terminal-unset-terminal-app-proxy-icon
|
|
|
|
|
}
|
|
|
|
|
add-zsh-hook preexec _terminal-unset-terminal-app-proxy-icon
|
|
|
|
|
|
|
|
|
|
# Do not set the tab and window titles in Terminal.app since it sets the tab
|
|
|
|
|
# title to the currently running process by default and the current working
|
|
|
|
|
# directory is set separately.
|
|
|
|
|
return
|
|
|
|
|
return
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Set up non-Apple terminals.
|
|
|
|
|
if zstyle -t ':prezto:module:terminal' auto-title \
|
|
|
|
|
&& ( ! [[ -n "$STY" || -n "$TMUX" ]] )
|
|
|
|
|
then
|
|
|
|
|
# Sets the tab and window titles before the prompt is displayed.
|
|
|
|
|
add-zsh-hook precmd _terminal-set-titles-with-path
|
|
|
|
|
# Sets the tab and window titles before the prompt is displayed.
|
|
|
|
|
add-zsh-hook precmd _terminal-set-titles-with-path
|
|
|
|
|
|
|
|
|
|
# Sets the tab and window titles before command execution.
|
|
|
|
|
add-zsh-hook preexec _terminal-set-titles-with-command
|
|
|
|
|
# Sets the tab and window titles before command execution.
|
|
|
|
|
add-zsh-hook preexec _terminal-set-titles-with-command
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|