4

I want to use WSL-Ubuntu-Shell in the GitHub desktop app. In the Desktop App for GitHub, there is only Powershell, cmd, and Git Bash. How to add WSL-Ubuntu-Shell?

Naveed Hematmal
  • 343
  • 4
  • 17

1 Answers1

4

One way to do this would be to install the Windows Terminal, which is available as a shell option in GitHub Desktop.

You can then set up Windows Terminal to open WSL. This thread explains how.


The shell integration documentation of GitHub Desktop mentions that support for WSL is now available in the beta version. Alternatively, the docs also explain how to add a shell of your choice by modifying the code appropriately.

GoodDeeds
  • 7,956
  • 5
  • 34
  • 61
  • I know how to install Windows Terminal and WSL, but It doesn't appear in the list of Github Desktop App Shells – Naveed Hematmal Apr 24 '20 at 18:49
  • @NaveedHematmal It's odd that Windows Terminal does not appear -- is your GitHub Desktop version recent enough? The feature seems to have been added only 2 months ago. – GoodDeeds Apr 24 '20 at 18:52
  • I have updated the app, now `Windows terminal` has been added there, but still I can't find Ubuntu (Ubuntu in WSL) – Naveed Hematmal Apr 24 '20 at 19:19
  • @NaveedHematmal My suggestion was to launch WSL Ubuntu through Windows Terminal (which is explained in this thread: https://stackoverflow.com/questions/56765067/how-do-i-get-windows-10-terminal-to-launch-wsl ). Works for me. I just searched a bit more, and [this doc](https://github.com/desktop/desktop/blob/4640bb6a750c776cfa644f734cace513eced4e2f/docs/technical/shell-integration.md) says that WSL integration is now available in GitHub Desktop Beta, so you could try that out. – GoodDeeds Apr 24 '20 at 19:27
  • @NaveedHematmal Alternatively, that doc also explains how to add your own preferred shell by tweaking the code a bit. – GoodDeeds Apr 24 '20 at 19:28