1
0
Fork 0
mirror of https://github.com/sbrl/bin.git synced 2018-01-10 21:33:46 +00:00
bin/.bash_host

50 lines
1.5 KiB
Bash
Raw Permalink Normal View History

#!/usr/bin/env bash
##########################
### Colour Definitions ###
#### ANSI color codes ####
RS="\[\033[0m\]" # reset
HC="\[\033[1m\]" # hicolor
UL="\[\033[4m\]" # underline
INV="\[\033[7m\]" # inverse background and foreground
FBLK="\[\033[30m\]" # foreground black
FRED="\[\033[31m\]" # foreground red
FRAS="\[\e[38;5;161m\]" # foreground raspberry :D
FGRN="\[\033[32m\]" # foreground green
FYEL="\[\033[33m\]" # foreground yellow
FBLE="\[\033[34m\]" # foreground blue
FMAG="\[\033[35m\]" # foreground magenta
FCYN="\[\033[36m\]" # foreground cyan
FWHT="\[\033[37m\]" # foreground white
BBLK="\[\033[40m\]" # background black
BRED="\[\033[41m\]" # background red
BGRN="\[\033[42m\]" # background green
BYEL="\[\033[43m\]" # background yellow
BBLE="\[\033[44m\]" # background blue
BMAG="\[\033[45m\]" # background magenta
BCYN="\[\033[46m\]" # background cyan
BWHT="\[\033[47m\]" # background white
##########################
2017-04-10 14:27:24 +00:00
# The colour of the host part of the prompt
HOST_COLOUR="${HC}${FYEL}"
2017-04-10 14:27:24 +00:00
# Whether we should disable hh integration or not.
# Useful if we're on a machine that doesn't have it installed.
2017-08-28 10:02:26 +00:00
NO_HH=false;
# Whether we should force-enable hh. Needed on some systems
# because sometimes support is not detected correctly. Use
# with extreme caution!
FORCE_HH=false;
# The preferred CLI text editor. Not needed on most systems due to sensible-editor,
# but needed on arch-like systems apparently.
#export VISUAL="nano";
2017-08-02 20:48:14 +00:00
which hh 1>/dev/null 2>&1;
if [[ "$?" -ne "0" ]]; then
NO_HH=true;
2017-08-28 10:02:26 +00:00
FORCE_HH=false;
fi