From ed26add138caf11c37df3f5689a11906a2522e07 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 29 May 2017 15:04:33 +0100 Subject: Setup hstr --- bashrc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bashrc') diff --git a/bashrc b/bashrc index 410355c..cd509f7 100644 --- a/bashrc +++ b/bashrc @@ -117,3 +117,9 @@ shopt -s no_empty_cmd_completion [ -x /usr/bin/fuck ] && eval $(thefuck --alias) #cd +if [ -x /usr/bin/hh ] ; then + export HH_CONFIG=hicolor,keywords,rawhistory + export PROMPT_COMMAND="history -a; history -n; ${PROMPT_COMMAND}" + if [[ $- =~ .*i.* ]]; then bind '"\C-r": "\C-a hh -- \C-j"'; fi +fi + -- cgit v1.2.3