530056d50d63b67dfaa169e2600a7c600ea18aa1
- Author
- James Wright <jrwrigh.iii@gmail.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
colored-man-pages: force `env` command (#8551)
Invoke `env` via `command` to ignore shell functions and aliases.
Diff
1diff --git a/plugins/colored-man-pages/colored-man-pages.plugin.zsh b/plugins/colored-man-pages/colored-man-pages.plugin.zsh
2index ac6a94654ddb6a96c7cc0b31db7d99e8efe6be10..f74105d409d14eae55812b9a19497c90b9558d4d 100644
3--- a/plugins/colored-man-pages/colored-man-pages.plugin.zsh
4+++ b/plugins/colored-man-pages/colored-man-pages.plugin.zsh
5@@ -17,7 +17,7 @@ EOF
6 fi
7
8 function colored() {
9- env \
10+ command env \
11 LESS_TERMCAP_mb=$(printf "\e[1;31m") \
12 LESS_TERMCAP_md=$(printf "\e[1;31m") \
13 LESS_TERMCAP_me=$(printf "\e[0m") \