Added emacs and shell config
Fixed history bug