浏览代码

fix(macos): use `command man` instead of `man` (#13046)

Sidar 2 周之前
父节点
当前提交
750d3ac4b4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/macos/macos.plugin.zsh

+ 1 - 1
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
 }