mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 16:18:00 +00:00
Fix osx module manp function
This commit is contained in:
parent
a4ca924310
commit
8be95c9c7e
@ -9,7 +9,7 @@ function manp {
|
|||||||
local page
|
local page
|
||||||
if (( $# > 0 )); then
|
if (( $# > 0 )); then
|
||||||
for page in "$@"; do
|
for page in "$@"; do
|
||||||
man -t "$page" | open -f -a Preview
|
mandoc -T pdf "$(/usr/bin/man -w $page)" | open -fa Preview
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
print 'What manual page do you want?' >&2
|
print 'What manual page do you want?' >&2
|
||||||
|
Loading…
Reference in New Issue
Block a user