mirror of
https://github.com/kastdeur/dotfiles.git
synced 2024-12-22 09:13:33 +01:00
[bash] Fixup rewrite hostname colouring
This commit is contained in:
parent
f7078d1b8a
commit
959907eb89
1 changed files with 1 additions and 2 deletions
|
@ -71,7 +71,6 @@ function __PS1_hostname() {
|
||||||
case "${HOST%%.*}" in
|
case "${HOST%%.*}" in
|
||||||
'locksmith') PS1+="${Pur}\h${RCol}";;
|
'locksmith') PS1+="${Pur}\h${RCol}";;
|
||||||
'bladesmith') PS1+="${Yel}\h${RCol}";;
|
'bladesmith') PS1+="${Yel}\h${RCol}";;
|
||||||
'gunsmith') PS1+="${Red}\h${RCol}";;
|
|
||||||
'goldsmith') PS1+="${IYel}\h${RCol}";;
|
'goldsmith') PS1+="${IYel}\h${RCol}";;
|
||||||
*) NOMATCH=1;;
|
*) NOMATCH=1;;
|
||||||
esac
|
esac
|
||||||
|
@ -82,7 +81,7 @@ function __PS1_hostname() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# extended colouring
|
# extended colouring
|
||||||
if [ -z "${NOMATCH}" ]; then
|
if [ -n "${NOMATCH}" ]; then
|
||||||
PS1+="${NOMATCH}"
|
PS1+="${NOMATCH}"
|
||||||
# default colouring
|
# default colouring
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue