2011-11-06 12:24:33 +00:00
|
|
|
#
|
2018-08-07 18:42:02 +00:00
|
|
|
# Requires https://www.bruji.com/bwana/
|
2011-11-06 12:24:33 +00:00
|
|
|
#
|
|
|
|
if [[ -e /Applications/Bwana.app ]] ||
|
|
|
|
( system_profiler -detailLevel mini SPApplicationsDataType | grep -q Bwana )
|
|
|
|
then
|
2019-04-15 13:47:14 +00:00
|
|
|
function bwana() {
|
2011-11-06 12:24:33 +00:00
|
|
|
open "man:$1"
|
|
|
|
}
|
|
|
|
else
|
2019-04-15 13:47:14 +00:00
|
|
|
echo "Bwana lets you read man files in Safari through a man: URI scheme"
|
2018-08-07 18:42:02 +00:00
|
|
|
echo "To use it within Zsh, install it from https://www.bruji.com/bwana/"
|
2011-11-06 12:24:33 +00:00
|
|
|
fi
|