Browse Source

update color term

master
VirtuBox 1 year ago
parent
commit
42cf27df1a
Signed by: virtubox GPG Key ID: 22EB296C97BAD476
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      mybashrc

+ 6
- 1
mybashrc View File

@ -1,7 +1,12 @@
#!/bin/bash
# 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
IS_SUDOERS=$(groups | grep sudo)


Loading…
Cancel
Save