1
0
Fork 0

update color term

This commit is contained in:
VirtuBox 2019-11-19 18:08:28 +01:00
parent aef95ade8d
commit 42cf27df1a
Signed by: virtubox
GPG Key ID: 22EB296C97BAD476
1 changed files with 6 additions and 1 deletions

View File

@ -1,7 +1,12 @@
#!/bin/bash #!/bin/bash
# FUNCTIONS # FUNCTIONS
force_color_prompt=yes if [ "$(id -u)" = "0" ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
fi
if [ "$(id -u)" != "0" ]; then if [ "$(id -u)" != "0" ]; then
IS_SUDOERS=$(groups | grep sudo) IS_SUDOERS=$(groups | grep sudo)