But something led /etc/profile to evolve into this:
Code: Select all
if [ "$PS1" ]; then
if [ "`id -u`" -eq 0 ]; then
export PS1='$(pwd)# '
else
export PS1='$(pwd)$ '
fi
fi
Code: Select all
export PS1='$(pwd)\$ '
Code: Select all
export PS1='\u@\h:\w\$ '