Skip to content
Browse files

Bwana plugin for reading man pages in Safari

  • Loading branch information...
1 parent 1103421 commit 98ecfa4c7769226432075edec8f2f3de275a81ff @avit avit committed
Showing with 13 additions and 0 deletions.
  1. +13 −0 plugins/bwana/bwana.plugin.zsh
View
13 plugins/bwana/bwana.plugin.zsh
@@ -0,0 +1,13 @@
+#
+# Requires http://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"
+ echo "To use it within Zsh, install it from http://www.bruji.com/bwana/"
+fi

0 comments on commit 98ecfa4

Please sign in to comment.
Something went wrong with that request. Please try again.