summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2012-12-05 07:21:33 -0800
committerRobby Russell <robby@planetargon.com>2012-12-05 07:21:33 -0800
commit6d7a275972918bf535e80a688914ba8f39f65110 (patch)
tree01ca16783f3372462110124414e12428918c71c4
parent046fc5a1d82cdbc549263a5a343c35dd31569477 (diff)
parent98ecfa4c7769226432075edec8f2f3de275a81ff (diff)
downloadzsh-6d7a275972918bf535e80a688914ba8f39f65110.tar.gz
zsh-6d7a275972918bf535e80a688914ba8f39f65110.tar.bz2
zsh-6d7a275972918bf535e80a688914ba8f39f65110.zip
Merge pull request #1084 from avit/bwana-plugin
Bwana plugin for reading man pages in the browser
-rw-r--r--plugins/bwana/bwana.plugin.zsh13
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/bwana/bwana.plugin.zsh b/plugins/bwana/bwana.plugin.zsh
new file mode 100644
index 000000000..455da8621
--- /dev/null
+++ b/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