From 55457187d18221e76bd12f0fb2cfab65c49b92fb Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 5 Mar 2019 01:09:01 +0100 Subject: Initial commit --- .oh-my-zsh/plugins/bwana/bwana.plugin.zsh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .oh-my-zsh/plugins/bwana/bwana.plugin.zsh (limited to '.oh-my-zsh/plugins/bwana/bwana.plugin.zsh') diff --git a/.oh-my-zsh/plugins/bwana/bwana.plugin.zsh b/.oh-my-zsh/plugins/bwana/bwana.plugin.zsh new file mode 100644 index 0000000..b9a0479 --- /dev/null +++ b/.oh-my-zsh/plugins/bwana/bwana.plugin.zsh @@ -0,0 +1,13 @@ +# +# Requires https://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 https://www.bruji.com/bwana/" +fi -- cgit v1.2.3