check on bash for changing promp

This commit is contained in:
Tobias Powalowski 2023-01-31 17:26:47 +01:00
parent 08959dfe7e
commit 27a578801d

View file

@ -1,6 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only
# created by Tobias Powalowski <tpowa@archlinux.org> # created by Tobias Powalowski <tpowa@archlinux.org>
if [[ "${0}" == "bash" ]]; then if [[ "${0}" == "-bash" ]]; then
if [[ "${UID}" == 0 ]]; then if [[ "${UID}" == 0 ]]; then
PS1='[\e[1;31m\u\e[m@\e[1;32m\h\e[m \W]\$ ' PS1='[\e[1;31m\u\e[m@\e[1;32m\h\e[m \W]\$ '
else else