Skip to content

Commit

Permalink
Merge pull request ohmyzsh#4203 from apjanke/title-protect-promptsubst
Browse files Browse the repository at this point in the history
termsupport: protect title() with `emulate -L zsh` for portability
  • Loading branch information
robbyrussell committed Aug 13, 2015
2 parents 45d640b + 90ea67e commit f6a2b97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/termsupport.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
# (In screen, only short_tab_title is used)
# Limited support for Apple Terminal (Terminal can't set window and tab separately)
function title {
emulate -L zsh
setopt prompt_subst

[[ "$EMACS" == *term* ]] && return

# if $2 is unset use $1 as default
Expand Down

0 comments on commit f6a2b97

Please sign in to comment.