Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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

like image 870
Mark Lu Avatar asked Apr 07 '16 05:04

Mark Lu


People also ask

Do Bash commands work in Windows?

Note that bash runs natively on Windows 10, which is different from using emulators like 'cygwin' for Windows which enabled GNU tools to run on unsupported Windows environment. Also, Linux subsystem for Windows 10 is only available on the 64-bit version of the OS.

What can I do with Bash on Windows 10?

As of build number 14328, Windows 10 allows you to run a special flavor of the Bash shell (on Ubuntu) in a window. Using Bash, you can navigate around the file system, install and run Linux command line apps like the vi text editor or, with some unofficial tweaks, try to load windowed programs.

How do I start the Bash terminal in Windows?

Press Windows key + X then click Command prompt, at the command prompt, type: bash then hit Enter. If you want to be able to access the local file system, press Windows key + X, Command Prompt (Admin) then type bash at the prompt.

What does Bash mean in Windows?

Bash is an acronym for Bourne Again Shell. A shell is a terminal application used to interface with an operating system through written commands. Bash is a popular default shell on Linux and macOS. Git Bash is a package that installs Bash, some common bash utilities, and Git on a Windows operating system.


2 Answers

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.

like image 159
Kostiantyn Korniyenko Avatar answered Sep 19 '22 07:09

Kostiantyn Korniyenko


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

enter image description here

like image 22
sanddog Avatar answered Sep 21 '22 07:09

sanddog