From 3ebbb40b31fa1ce9f10040742cdb06ea04fa7c41 Mon Sep 17 00:00:00 2001 From: Pavan Rikhi Date: Tue, 15 Dec 2015 10:53:13 -0500 Subject: [PATCH] colored-man-pages: Use Portable `less` Path --- plugins/colored-man-pages/colored-man-pages.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/colored-man-pages/colored-man-pages.plugin.zsh b/plugins/colored-man-pages/colored-man-pages.plugin.zsh index 44e0c71a1..54f0bdda9 100644 --- a/plugins/colored-man-pages/colored-man-pages.plugin.zsh +++ b/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 "$@"