summaryrefslogtreecommitdiff
path: root/plugins/bwana
diff options
context:
space:
mode:
authorStephen Zhuang <stephen.zhuang@gmail.com>2013-01-06 14:10:42 +0800
committerStephen Zhuang <stephen.zhuang@gmail.com>2013-01-06 14:10:42 +0800
commit914c47b3473b000288c693523f83fde998282a81 (patch)
treea29cf3d796544a3b2807e26812011cda51f644a9 /plugins/bwana
parent692dca07158413ae27b2064c303240f5b9621cff (diff)
parent80a603259657acab97badbae20003b5a34c901f9 (diff)
downloadzsh-914c47b3473b000288c693523f83fde998282a81.tar.gz
zsh-914c47b3473b000288c693523f83fde998282a81.tar.bz2
zsh-914c47b3473b000288c693523f83fde998282a81.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'plugins/bwana')
-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