1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-07-01 03:29:26 +00:00

Add capability to browse man pages in Dash.app

This commit is contained in:
Sorin Ionescu
2013-05-21 13:46:42 -04:00
parent 232313e2a0
commit 00e12b7a98
3 changed files with 25 additions and 3 deletions

View File

@ -0,0 +1,21 @@
#
# Opens man pages in Dash.app.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
function mand {
if (( $# > 0 )); then
open "dash://manpages:$1" 2>/dev/null
if (( $? != 0 )); then
print "$0: Dash is not installed" >&2
break
fi
else
print 'What manual page do you want?' >&2
fi
}
mand "$@"