mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Fix custom PS1 for .bashrc module defaults
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user