What I had done was to modify part of /etc/profile, namely:
Code:
# Set a default shell prompt:
#PS1='`hostname`:`pwd`# '
if [ "$SHELL" = "/bin/pdksh" ]; then
PS1='! $ '
elif [ "$SHELL" = "/bin/ksh" ]; then
PS1='! ${PWD/#$HOME/~}$ '
elif [ "$SHELL" = "/bin/zsh" ]; then
PS1='%n@%m:%~%# '
elif [ "$SHELL" = "/bin/ash" ]; then
PS1='$ '
else
PS1='\u@\h:\w\$ '
fi
PS1='\u@\h:\w\$ '
PS2='> '
export PATH DISPLAY LESS TERM PS1 PS2
But I got literally the string as the prompt. But I can't remember the way
I made the system to use ash instead of bash. I presume I used chsh.