diff options
author | Andrew Vit <andrew@avit.ca> | 2011-11-06 04:24:33 -0800 |
---|---|---|
committer | Andrew Vit <andrew@avit.ca> | 2012-07-19 03:02:57 -0700 |
commit | 98ecfa4c7769226432075edec8f2f3de275a81ff (patch) | |
tree | 2bf265f0847447c30cef38e39b8daf06ba7c77fd | |
parent | 11034217a7ea3cffe6e0fe631837c518b8c7e1a5 (diff) | |
download | zsh-98ecfa4c7769226432075edec8f2f3de275a81ff.tar.gz zsh-98ecfa4c7769226432075edec8f2f3de275a81ff.tar.bz2 zsh-98ecfa4c7769226432075edec8f2f3de275a81ff.zip |
Bwana plugin for reading man pages in Safari
-rw-r--r-- | plugins/bwana/bwana.plugin.zsh | 13 |
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 |