initd version
This commit is contained in:
8
rootfs-overlay/etc/profile.d/prompt.sh
Normal file
8
rootfs-overlay/etc/profile.d/prompt.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user