mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-12-05 08:30:50 +08:00
12 lines
252 B
Fish
12 lines
252 B
Fish
|
# Open a specified man page in Preview
|
||
|
|
||
|
function manp
|
||
|
if count $argv >/dev/null
|
||
|
switch $argv[1]
|
||
|
case -d --description
|
||
|
echo "Open a specified man page in Preview"
|
||
|
return 0
|
||
|
end
|
||
|
end
|
||
|
man -t $argv | open -f -a Preview
|
||
|
end
|