From 1842ed9e391e5a5d7cd09f9ac89512f84520afd5 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..fe50a2f 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -63,6 +63,13 @@ plugins=( ) ``` +==== Zsh with https://github.com/zplug/zplug[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...