bwana: change function name to bwana (#7769)
Change name function from `man` to `bwana`.
Diff
1diff --git a/plugins/bwana/README.md b/plugins/bwana/README.md
2index 8cbeaa32e0ff57adfe8425f76352866715bd4e86..dd4fe9f9c78b9600d5a6472f99bc72aa206ce296 100644
3--- a/plugins/bwana/README.md
4+++ b/plugins/bwana/README.md
5@@ -7,3 +7,6 @@ To use it add bwana to the plugins array in your zshrc file.
6 ```bash
7 plugins=(... bwana)
8 ```
9+
10+The `bwana` function opens the man page of the passed argument in the Bwana app.
11+For example: `bwana ln` opens the man page for `ln` in Bwana.
12diff --git a/plugins/bwana/bwana.plugin.zsh b/plugins/bwana/bwana.plugin.zsh
13index b9a04793f67cf7742277279c3dbf11175a8b5f61..71c9eb18d7111fe40808f18ae7297931c6aaf26f 100644
14--- a/plugins/bwana/bwana.plugin.zsh
15+++ b/plugins/bwana/bwana.plugin.zsh
16@@ -4,10 +4,10 @@
17 if [[ -e /Applications/Bwana.app ]] ||
18 ( system_profiler -detailLevel mini SPApplicationsDataType | grep -q Bwana )
19 then
20- function man() {
21+ function bwana() {
22 open "man:$1"
23 }
24 else
25- echo "Bwana lets you read man files in Safari through a man: URI scheme"
26+ echo "Bwana lets you read man files in Safari through a man: URI scheme"
27 echo "To use it within Zsh, install it from https://www.bruji.com/bwana/"
28 fi