Run Ubuntu-Bash in Win-10 on Cmder

Update

It turns out that cmder actually supports this out of the box now. Just launch the WSL::bash task (Windows Subsystem for Linux).

This is fantastic because the below approach seemed to have issues when you tried to use arrow keys in VIM despite having the -cur_console:p argument that supposedly fixes that issue.

Original Article (For Reference)

I don’t recommend this approach now that the out of the box one works well.  But here is the original article anyway :).

Cmder is a great console emulator built on top of ConEmu (another great project).

In our last post about installing Apache Airflow into Windows using the Ubuntu bash sub-system, we properly installed Ubuntu from the Windows 10 store.

Assuming you have done this, you can make it work in cmder to improve the usability of the shell.

Simply do the following, which only takes 30 seconds or so:

  1. Right click on the top bar of cmder.
  2. Click settings.
  3. Click “Tasks” under “Startup” on the left navigation panel.
  4. Click the “+” with the underline.
  5. Give it any name you like.  You may want to follow the naming conventions of the similar bash shells above, but its your choice.
  6. Add “%windir%\system32\bash.exe ~ -cur_console:p” in the commands section.

I actually had trouble fining the bash executable; you can’t just right click on the start-up icon and find it in this case.  So, credit to this post: https://gingter.org/2016/11/16/running-windows-10-ubuntu-bash-in-cmder/ for that command.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s