9

I am new to bash and commandline, a friend adviced me to use Bash with Cmder so I downloaded it here : http://cmder.net/ (mini)

The problem is, that when I open it it emulates the standard command prompt and not Bash. I can't find where I can configure it.

When I say Bash I mean Bash on Ubuntu on Windows 10.

neiya
  • 986
  • 10
  • 21

4 Answers4

12

Here's how I did it:

in Settings, Tasks I added a "bash::ubuntu" task which I launch with :

%windir%\system32\bash.exe -cur_console:pm:/mnt

(paste it in the big box in the lower right corner)

I even set up its icon with :

-icon "%USERPROFILE%\AppData\Local\lxss\bash.ico"

(paste it in "Task parameter".)

And it works like a charm, I even set up a personnalised palette locked to bash::ubuntu (using Ap Distinct) that looks like the purple terminal from ubuntu.

BTW the latest version of ConEmu has already bash.exe setup under Bash::bash.

Here's how it looks for me

Mad Physicist
  • 76,709
  • 19
  • 122
  • 186
Seanny_Crow
  • 121
  • 1
  • 5
  • This no longer works or it doesn't work for me. I don't understand why it isn't working but it completely ignores this startup task and refuses to use Ubuntu, refuses to go to the home ~ folder and refuses to use the icon. I don't get why. – Nathan McKaskle May 06 '20 at 14:06
4

Support for the new Windows 10 bash shell is a closed issue now.
Setting could be done this way:

You make a new task called Bash::Ubuntu

Task parameters:

/icon "%USERPROFILE%\AppData\Local\lxss\bash.ico"

Commands:

cmd /k "%SYSTEMROOT%\System32\bash.exe" -new_console:d:%USERPROFILE%

Then you make a new task called Bash::Ubuntu as Admin

Task parameters same as before Commands:

*cmd /k "%SYSTEMROOT%\System32\bash.exe" -new_console:d:%USERPROFILE%

2018/7/2 no extra setting need with the latest version of Cmder(v1.3.6) and Win10(17134) with WSL(Windows subsystem Linux).

enter image description here

Shihe Zhang
  • 1,977
  • 4
  • 30
  • 49
3

The Windows bash.exe is located in C:\Windows\System32, all you need to do from cmder shell is to use the full path:

C:\Windows\System32\bash
Alec Istomin
  • 281
  • 2
  • 7
1

You can type bash in your terminal to switch to the bash mode

exit to exit

same sh for shell

Oleg Pro
  • 1,694
  • 1
  • 10
  • 22