update color term
This commit is contained in:
parent
aef95ade8d
commit
42cf27df1a
7
mybashrc
7
mybashrc
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue