Change the prompt in "sh"

I set my prompt in .profile to

PS1="%m %! %c %# "; export PS1

which gives me host – command number – last part of path – # or % depending on root or not…