Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No history when using bash inside emacs?

I've started using m-x term (with bash) inside emacs, but I noticed that if I use up arrow / down arrow I just get 'A' and 'B' respectively instead of my history. Is there a way to make this work?

like image 205
Paul D. Avatar asked Jan 05 '11 22:01

Paul D.


2 Answers

Ctrl-n, Ctrl-p will go back and forth in the history of term, up and down will work on M-x eshell.

like image 66
Dervin Thunk Avatar answered Sep 19 '22 13:09

Dervin Thunk


when I use M-x term in emacs(23.3.1),I can use C-n,C-p or up arrow,down arrow to get history.

when I use M-x shell,I can use M-n,M-p to get the command history.

like image 44
user2360478 Avatar answered Sep 22 '22 13:09

user2360478