Allow square brackets in bash prompts

Modify the generic and privileged prompts to match content enclosed in
square brackets.

Generic prompt example:
  [username@host ~]$

Privileged prompt example:
  [root@host ~]#