98ecfa4c7769226432075edec8f2f3de275a81ff
- Author
- Andrew Vit <andrew@avit.ca>
- Committer
- Andrew Vit <andrew@avit.ca>
- Date
Message
Bwana plugin for reading man pages in Safari
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