[shell] Update `qh` function

Instead of using the very specific `~/.bash_history` file to get the
command line history, use the file specified by the `HISTFILE` local
variable.

Ref: http://www.gnu.org/software/bash/manual/html_node/Bash-History-Facilities.html
[shell] Add `history` and `qh` to `HISTIGNORE`