浏览代码

colored-man plugin: Quoted PATH variable

Some environments (in my case, cygwin) have PATH variables with directories
with spaces in them, breaking colored-man.
Adding quotes around the PATH environment variable makes the plugin run OK.
cknoblauch 9 年之前
父节点
当前提交
a8157293a7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/colored-man-pages/colored-man-pages.plugin.zsh

+ 1 - 1
plugins/colored-man-pages/colored-man-pages.plugin.zsh

@@ -27,6 +27,6 @@ man() {
 	  LESS_TERMCAP_us=$(printf "\e[1;32m") \
 	  PAGER=/usr/bin/less \
 	  _NROFF_U=1 \
-	  PATH=${HOME}/bin:${PATH} \
+	  PATH="$HOME/bin:$PATH" \
 	  			   man "$@"
 }