oh-my-zsh/plugins/bwana/bwana.plugin.zsh

14 lines
370 B
Bash
Raw Normal View History

#
2018-01-25 22:07:36 +00:00
# Requires https://www.bruji.com/bwana/
#
if [[ -e /Applications/Bwana.app ]] ||
( system_profiler -detailLevel mini SPApplicationsDataType | grep -q Bwana )
then
function man() {
open "man:$1"
}
else
echo "Bwana lets you read man files in Safari through a man: URI scheme"
2018-01-25 22:07:36 +00:00
echo "To use it within Zsh, install it from https://www.bruji.com/bwana/"
fi