"Characters to Add Information to the bash Prompt
! Shows the current command history number. This includes all previous commands stored for your username.
"# Shows the command number of the current command. This includes only the commands for the active shell.
"$ Shows the user prompt ($) or root prompt (#), depending on which user you are."