1
0
Fork 0

Add optional NO_HH .bash_host variable

This commit is contained in:
Starbeamrainbowlabs 2017-04-10 15:27:24 +01:00
parent 29e07a06ee
commit 52d1a5a8de
2 changed files with 10 additions and 3 deletions

View File

@ -25,4 +25,9 @@ BCYN="\[\033[46m\]" # background cyan
BWHT="\[\033[47m\]" # background white
##########################
# The colour of the host part of the prompt
HOST_COLOUR="${HC}${FYEL}"
# Whether we should disable hh integration or not.
# Useful if we're on a machine that doesn't have it installed.
NO_HH=false;

View File

@ -152,9 +152,11 @@ fi
source ~/bin/commacd.sh
# hh / hstr configuration (https://github.com/dvorka/hstr/)
export HH_CONFIG=hicolor # get more colors
if [[ $- =~ .*i.* ]]; then bind '"\C-r": "\C-a hh \C-j"'; fi
if [[ ! ${NO_HH} ]]; then
# hh / hstr configuration (https://github.com/dvorka/hstr/)
export HH_CONFIG=hicolor # get more colors
if [[ $- =~ .*i.* ]]; then bind '"\C-r": "\C-a hh \C-j"'; fi
fi
# dh_make configuration
DEBEMAIL="feedback@starbeamrainbowlabs.com"