summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bashrc6
1 files changed, 6 insertions, 0 deletions
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
+