浏览代码

Merge branch 'master' of github.com:robbyrussell/oh-my-zsh

Robby Russell 10 年之前
父节点
当前提交
6713aef977
共有 2 个文件被更改,包括 1 次插入5 次删除
  1. 0 1
      lib/completion.zsh
  2. 1 4
      plugins/vi-mode/vi-mode.plugin.zsh

+ 0 - 1
lib/completion.zsh

@@ -34,7 +34,6 @@ fi
 
 
 # disable named-directories autocompletion
 # disable named-directories autocompletion
 zstyle ':completion:*:cd:*' tag-order local-directories directory-stack path-directories
 zstyle ':completion:*:cd:*' tag-order local-directories directory-stack path-directories
-cdpath=(.)
 
 
 # Use caching so that commands like apt and dpkg complete are useable
 # Use caching so that commands like apt and dpkg complete are useable
 zstyle ':completion::complete:*' use-cache 1
 zstyle ':completion::complete:*' use-cache 1

+ 1 - 4
plugins/vi-mode/vi-mode.plugin.zsh

@@ -16,10 +16,7 @@ function zle-keymap-select zle-line-init zle-line-finish {
 
 
 # Ensure that the prompt is redrawn when the terminal size changes.
 # Ensure that the prompt is redrawn when the terminal size changes.
 TRAPWINCH() {
 TRAPWINCH() {
-  if [[ -o zle ]]; then
-    zle reset-prompt
-    zle -R
-  fi
+  zle && { zle reset-prompt; zle -R }
 }
 }
 
 
 zle -N zle-line-init
 zle -N zle-line-init