浏览代码

Add support of screen-* $TERM in screen plugin

Denys Lózko 11 年之前
父节点
当前提交
af729cc476
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/screen/screen.plugin.zsh

+ 1 - 1
plugins/screen/screen.plugin.zsh

@@ -1,6 +1,6 @@
 # if using GNU screen, let the zsh tell screen what the title and hardstatus
 # of the tab window should be.
-if [[ $TERM == "screen" ]]; then
+if [[ "$TERM" == screen* ]]; then
   if [[ $_GET_PATH == '' ]]; then
     _GET_PATH='echo $PWD | sed "s/^\/Users\//~/;s/^\/home\//~/;s/^~$USER/~/"'
   fi