Files
Nimux/rootfs-overlay/etc/profile.d/prompt.sh
2025-10-10 21:19:35 +02:00

9 lines
278 B
Bash

# overrule the default prompt to make it more usefull
if [ "$PS1" ]; then
if [ "`id -u`" -eq 0 ]; then
export PS1="\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]# "
else
export PS1="\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ "
fi
fi