浏览代码

Merge pull request #1608 from swanandp/m_lion_terminal_same_tab_support

Mountain Lion Terminal App: Support for opening tabs and windows in the same folder.
Robby Russell 12 年之前
父节点
当前提交
8fea507b5c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/termsupport.zsh

+ 1 - 1
lib/termsupport.zsh

@@ -8,7 +8,7 @@ function title {
   fi
   fi
   if [[ "$TERM" == screen* ]]; then
   if [[ "$TERM" == screen* ]]; then
     print -Pn "\ek$1:q\e\\" #set screen hardstatus, usually truncated at 20 chars
     print -Pn "\ek$1:q\e\\" #set screen hardstatus, usually truncated at 20 chars
-  elif [[ "$TERM" == xterm* ]] || [[ $TERM == rxvt* ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
+  elif [[ "$TERM" == xterm* ]] || [[ $TERM == rxvt* ]] || [[ $TERM == ansi ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
     print -Pn "\e]2;$2:q\a" #set window name
     print -Pn "\e]2;$2:q\a" #set window name
     print -Pn "\e]1;$1:q\a" #set icon (=tab) name (will override window name on broken terminal)
     print -Pn "\e]1;$1:q\a" #set icon (=tab) name (will override window name on broken terminal)
   fi
   fi