summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSidar <65621366+Maple38@users.noreply.github.com>2025-04-03 17:38:51 +0300
committerGitHub <noreply@github.com>2025-04-03 16:38:51 +0200
commit750d3ac4b493dca13ef0ced55fa6a2cd02dc7ee8 (patch)
tree4c6226145b04b2f2fd9b89a9337df1fb4e4a8ccb
parentf81259fb344685e2dc8b67f8ad8764ccd4e8502e (diff)
downloadzsh-750d3ac4b493dca13ef0ced55fa6a2cd02dc7ee8.tar.gz
zsh-750d3ac4b493dca13ef0ced55fa6a2cd02dc7ee8.tar.bz2
zsh-750d3ac4b493dca13ef0ced55fa6a2cd02dc7ee8.zip
fix(macos): use `command man` instead of `man` (#13046)
-rw-r--r--plugins/macos/macos.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/macos/macos.plugin.zsh b/plugins/macos/macos.plugin.zsh
index 6ddf31ecf..4d73d22c3 100644
--- a/plugins/macos/macos.plugin.zsh
+++ b/plugins/macos/macos.plugin.zsh
@@ -271,7 +271,7 @@ function man-preview() {
[[ $# -eq 0 ]] && >&2 echo "Usage: $0 command1 [command2 ...]" && return 1
local page
- for page in "${(@f)"$(man -w $@)"}"; do
+ for page in "${(@f)"$(command man -w $@)"}"; do
command mandoc -Tpdf $page | open -f -a Preview
done
}