* Wed Feb 24 2021 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-4.sme

- fix domain name displayed twice \H to \h [SME: 11389]
This commit is contained in:
2025-10-06 10:27:49 -04:00
parent fab5b1fb84
commit 371e3f9db8
5 changed files with 43 additions and 85 deletions

8
coloured.sh Normal file
View File

@@ -0,0 +1,8 @@
# set prompt: ``username@hostname:/directory $ ''
PS1="[\[\e[1;32m\]\u\[\e[m\]@\[\e[0;31m\]\h.$(dnsdomainname)\[\e[m\]:\[\e[0;33m\]\w\[\e[m\]]"
case `id -u` in
0) PS1="${PS1}# ";;
*) PS1="${PS1}$ ";;
esac