bwana.plugin.zsh 368 B

12345678910111213
  1. #
  2. # Requires http://www.bruji.com/bwana/
  3. #
  4. if [[ -e /Applications/Bwana.app ]] ||
  5. ( system_profiler -detailLevel mini SPApplicationsDataType | grep -q Bwana )
  6. then
  7. function man() {
  8. open "man:$1"
  9. }
  10. else
  11. echo "Bwana lets you read man files in Safari through a man: URI scheme"
  12. echo "To use it within Zsh, install it from http://www.bruji.com/bwana/"
  13. fi