6d7a275972918bf535e80a688914ba8f39f65110
- Author
- Robby Russell <robby@planetargon.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Merge pull request #1084 from avit/bwana-plugin
Bwana plugin for reading man pages in the browser
Diff
1diff --git a/plugins/bwana/bwana.plugin.zsh b/plugins/bwana/bwana.plugin.zsh
2new file mode 100644
3index 0000000000000000000000000000000000000000..455da862151d56f299dbd3923e09b28dc73895f0
4--- /dev/null
5+++ b/plugins/bwana/bwana.plugin.zsh
6@@ -0,0 +1,13 @@
7+#
8+# Requires http://www.bruji.com/bwana/
9+#
10+if [[ -e /Applications/Bwana.app ]] ||
11+ ( system_profiler -detailLevel mini SPApplicationsDataType | grep -q Bwana )
12+then
13+ function man() {
14+ open "man:$1"
15+ }
16+else
17+ echo "Bwana lets you read man files in Safari through a man: URI scheme"
18+ echo "To use it within Zsh, install it from http://www.bruji.com/bwana/"
19+fi