]> git.rmz.io Git - dotfiles.git/blobdiff - zsh/plugins/bwana/bwana.plugin.zsh
Squashed commit of the following + cleanup afterwards:
[dotfiles.git] / zsh / plugins / bwana / bwana.plugin.zsh
diff --git a/zsh/plugins/bwana/bwana.plugin.zsh b/zsh/plugins/bwana/bwana.plugin.zsh
new file mode 100644 (file)
index 0000000..455da86
--- /dev/null
@@ -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