浏览代码

colored-man-pages: Use Portable `less` Path

Pavan Rikhi 8 年之前
父节点
当前提交
3ebbb40b31
共有 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

@@ -25,7 +25,7 @@ man() {
 		LESS_TERMCAP_so=$(printf "\e[1;44;33m") \
 		LESS_TERMCAP_ue=$(printf "\e[0m") \
 		LESS_TERMCAP_us=$(printf "\e[1;32m") \
-		PAGER=/usr/bin/less \
+		PAGER="${commands[less]:-$PAGER}" \
 		_NROFF_U=1 \
 		PATH="$HOME/bin:$PATH" \
 			man "$@"