From 4098577128b4d8c9051668b6c7230c8f6bca1205 Mon Sep 17 00:00:00 2001 From: Krzysztof Hajdamowicz Date: Mon, 14 Sep 2020 16:57:09 +0200 Subject: [PATCH] Add plugin for hstr --- plugins/hstr/README.md | 5 +++++ plugins/hstr/hstr.plugin.zsh | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 plugins/hstr/README.md create mode 100644 plugins/hstr/hstr.plugin.zsh diff --git a/plugins/hstr/README.md b/plugins/hstr/README.md new file mode 100644 index 000000000..d2934f2cf --- /dev/null +++ b/plugins/hstr/README.md @@ -0,0 +1,5 @@ +# hstr plugin + +This is a helper plugin for https://github.com/dvorka/hstr + +Includes necessary aliases and key bindings for hstr in ZSH. diff --git a/plugins/hstr/hstr.plugin.zsh b/plugins/hstr/hstr.plugin.zsh new file mode 100644 index 000000000..71612ce0f --- /dev/null +++ b/plugins/hstr/hstr.plugin.zsh @@ -0,0 +1,4 @@ +alias hh=hstr # hh to be alias for hstr +export HISTFILE=~/.zsh_history # ensure history file visibility +export HSTR_CONFIG=hicolor # get more colors +bindkey -s "\C-r" "\eqhstr\n" # bind hstr to Ctrl-r (for Vi mode check doc)