diff options
| author | Tuowen Zhao <ztuowen@gmail.com> | 2023-03-18 16:23:39 -0700 | 
|---|---|---|
| committer | Tuowen Zhao <ztuowen@gmail.com> | 2023-03-18 16:23:39 -0700 | 
| commit | 4b0bbc0b263a150eb9a9b59f196914629be06a9b (patch) | |
| tree | 619723cfa449f93149b766ee397f85ce2acef5f7 /plugins/macos/macos.plugin.zsh | |
| parent | db7efd2336e4dbe6abf321b00dbc11bc5afb1355 (diff) | |
| parent | 72732a224e886933df6b64a49ec6f5e94c884612 (diff) | |
| download | zsh-4b0bbc0b263a150eb9a9b59f196914629be06a9b.tar.gz zsh-4b0bbc0b263a150eb9a9b59f196914629be06a9b.tar.bz2 zsh-4b0bbc0b263a150eb9a9b59f196914629be06a9b.zip | |
Merge remote-tracking branch 'github/master'
Diffstat (limited to 'plugins/macos/macos.plugin.zsh')
| -rw-r--r-- | plugins/macos/macos.plugin.zsh | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/plugins/macos/macos.plugin.zsh b/plugins/macos/macos.plugin.zsh index e4d759dcf..e27d412c8 100644 --- a/plugins/macos/macos.plugin.zsh +++ b/plugins/macos/macos.plugin.zsh @@ -224,9 +224,10 @@ function quick-look() {  }  function man-preview() { -  local location -  # Don't let Preview.app steal focus if the man page doesn't exist -  location=$(man -w "$@") && mandoc -Tpdf $location | open -f -a Preview +  local page +  for page in "${(@f)"$(man -w $@)"}"; do +    command mandoc -Tpdf $page | open -f -a Preview +  done  }  compdef _man man-preview | 
