From e36b89436a3bad6650e6ec33412f0b1879dc222b Mon Sep 17 00:00:00 2001 From: Ash Jindal Date: Wed, 8 Dec 2021 12:47:31 +0000 Subject: [PATCH] Add support for installing in ZSH using zplug --- README.asciidoc | 7 +++++++ h.sh | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.asciidoc b/README.asciidoc index 0da3ce1..7a8f1af 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -63,6 +63,13 @@ plugins=( ) ``` +==== Zsh with zplug +Add the following to your `~/.zshrc` file: + +```bash +zplug "paoloantinori/hhighlighter", use: h.sh +``` + === Platform Specifics *h* has currently been tested only on *bash* and *zsh* on *Linux* and *MacOSX*. diff --git a/h.sh b/h.sh index ce2189e..885d564 100644 --- a/h.sh +++ b/h.sh @@ -24,7 +24,7 @@ -h() { +function h() { _usage() { echo "usage: YOUR_COMMAND | h [-idn] args...