added better bash history options and emacs mode.