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:
- Right click on the top bar of cmder.
- Click settings.
- Click “Tasks” under “Startup” on the left navigation panel.
- Click the “+” with the underline.
- Give it any name you like. You may want to follow the naming conventions of the similar bash shells above, but its your choice.
- 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.