summaryrefslogtreecommitdiff
path: root/plugins/bwana
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2019-04-15 16:47:43 +0200
committerGitHub <noreply@github.com>2019-04-15 16:47:43 +0200
commit4b9c4e973e4d39a0abf35e9087ec17e49b2855c5 (patch)
tree8e7e250cd9647d996b3dd922ca07724d8143a2f8 /plugins/bwana
parent08da19e3fd27acf5085e207ee7da411e6a5eb96a (diff)
parent4456536a78e2bbcf4cace5a54bb1b61a77c8b0cd (diff)
downloadzsh-4b9c4e973e4d39a0abf35e9087ec17e49b2855c5.tar.gz
zsh-4b9c4e973e4d39a0abf35e9087ec17e49b2855c5.tar.bz2
zsh-4b9c4e973e4d39a0abf35e9087ec17e49b2855c5.zip
bwana: change function name to bwana (#7769)
Change name function from `man` to `bwana`.
Diffstat (limited to 'plugins/bwana')
-rw-r--r--plugins/bwana/README.md3
-rw-r--r--plugins/bwana/bwana.plugin.zsh4
2 files changed, 5 insertions, 2 deletions
diff --git a/plugins/bwana/README.md b/plugins/bwana/README.md
index 8cbeaa32e..dd4fe9f9c 100644
--- a/plugins/bwana/README.md
+++ b/plugins/bwana/README.md
@@ -7,3 +7,6 @@ To use it add bwana to the plugins array in your zshrc file.
```bash
plugins=(... bwana)
```
+
+The `bwana` function opens the man page of the passed argument in the Bwana app.
+For example: `bwana ln` opens the man page for `ln` in Bwana.
diff --git a/plugins/bwana/bwana.plugin.zsh b/plugins/bwana/bwana.plugin.zsh
index b9a04793f..71c9eb18d 100644
--- a/plugins/bwana/bwana.plugin.zsh
+++ b/plugins/bwana/bwana.plugin.zsh
@@ -4,10 +4,10 @@
if [[ -e /Applications/Bwana.app ]] ||
( system_profiler -detailLevel mini SPApplicationsDataType | grep -q Bwana )
then
- function man() {
+ function bwana() {
open "man:$1"
}
else
- echo "Bwana lets you read man files in Safari through a man: URI scheme"
+ 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