Paul D.
Paul D.

Reputation: 1845

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?

Upvotes: 5

Views: 484

Answers (4)

Paul D.
Paul D.

Reputation: 1845

I think this was either a bug or lack of feature in Emacs 21.3.1, because when I recently got a second machine with Emacs 23.1.1 as the default install, I no longer see this issue.

Upvotes: 0

user2360478
user2360478

Reputation: 41

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.

Upvotes: 3

Dervin Thunk
Dervin Thunk

Reputation: 20119

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

Upvotes: 3

justinhj
justinhj

Reputation: 11306

You can use m-x shell

That supports previous and next command with m-p and m-n

Upvotes: 2

Related Questions