mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
check on bash for changing promp
This commit is contained in:
parent
08959dfe7e
commit
27a578801d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue