Fix custom PS1 for .bashrc module defaults

This commit is contained in:
Ilia Ross
2023-10-12 20:45:31 +03:00
parent f980e3bb2e
commit 3cdaaf2950

View File

@@ -26,7 +26,11 @@ if [ -x /usr/bin/dircolors ]; then
fi
# custom PS1
PS1='\[\033[1;35m\]\u\[\033[1;37m\]@\[\033[1;32m\]\h:\[\033[1;37m\]\w\[\033[1;37m\]\$\[\033[0m\] '
if [ "$(id -u)" -eq 0 ]; then
PS1='\[\033[1m\033[38;5;196m\]\u\[\033[1;39m\]@\[\033[38;5;82m\]\h:\[\033[38;5;213m\]\w\[\033[1;37m\]\$\[\033[0m\] '
else
PS1='\[\033[1m\033[38;5;208m\]\u\[\033[1;39m\]@\[\033[38;5;82m\]\h:\[\033[38;5;213m\]\w\[\033[1;37m\]\$\[\033[0m\] '
fi
# user default run time config
if [ -f ~/.bashrc ]; then