From a8157293a776cdf8bd7c192033ab369a2f7bb9cb Mon Sep 17 00:00:00 2001 From: cknoblauch Date: Tue, 6 Oct 2015 18:22:26 -0300 Subject: [PATCH] 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. --- 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 5c613f49d..8ff240bf4 100644 --- a/plugins/colored-man-pages/colored-man-pages.plugin.zsh +++ b/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 "$@" }