summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-05-29 15:04:33 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2017-05-29 15:04:33 +0100
commited26add138caf11c37df3f5689a11906a2522e07 (patch)
tree71661a8ed1b048a18e6c10593ec93da048aa794d /bashrc
parentSetup thefuck (diff)
downloadutil-ed26add138caf11c37df3f5689a11906a2522e07.tar.bz2
util-ed26add138caf11c37df3f5689a11906a2522e07.tar.xz
util-ed26add138caf11c37df3f5689a11906a2522e07.zip
Setup hstr
Diffstat (limited to 'bashrc')
-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
+