Mark Lu
Mark Lu

Reputation: 1358

When using conemu with Windows 10 bash shell, why doesn't the UP key show the previous command?

The up arrow scrolls through command history, but it doesn't work after I launch bash shell.

Upvotes: 25

Views: 12337

Answers (4)

Comfort Eagle
Comfort Eagle

Reputation: 2462

Set a switch for -cur_console:p[n] where n is the pty mode:

p[N] - pty modes, N - bitmask: 1 - XTermKeys, 2 - BrPaste, 4 - AppCursorKeys; default is 1

from https://conemu.github.io/en/NewConsole.html

Upvotes: 0

irsis
irsis

Reputation: 1054

Reading through the discussions here. I settled with following value that worked for me

%windir%\system32\bash.exe ~/mnt/ -l -i -cur_console:p1 -new_console:p:n

Upvotes: 1

sanddog
sanddog

Reputation: 91

Also, here is a config for Cmder to lunch bash.exe with config given by Kostiantyn Korniyenko just in case.

enter image description here

Upvotes: 5

Kostiantyn Korniyenko
Kostiantyn Korniyenko

Reputation: 649

Solution for now is to use next command:

%windir%\system32\bash.exe -cur_console:p

It can be found here on official site.

Worked for me on Cmder as well.

Upvotes: 17

Related Questions