1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-14 01:40:09 +00:00

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.
This commit is contained in:
cknoblauch 2015-10-06 18:22:26 -03:00 committed by Marc Cornellà
parent dd299542c9
commit a8157293a7

View file

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