Skip to content

Instantly share code, notes, and snippets.

@keijiro
Last active October 29, 2020 21:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keijiro/21dc40a5758f6d08e4485296e943ffd3 to your computer and use it in GitHub Desktop.
Save keijiro/21dc40a5758f6d08e4485296e943ffd3 to your computer and use it in GitHub Desktop.
How to use the bash shell included in GitHub Desktop for Windows.

GitHub Desktop installs several UNIX command line tools (actually it contains a subset of cygwin and msys). It's one of the easiest ways to build a UNIX-like CLI environment in a Windows system.

GitHub Desktop provides a powershell script shell.ps1 that sets up environment variables for the command line tools inside it. For instance, to launch the bash shell in ConEmu, the following command has to be added to a task.

powershell.exe -ExecutionPolicy RemoteSigned -Command ". $env:LOCALAPPDATA\GitHub\shell.ps1; bash"
@pettus
Copy link

pettus commented Nov 13, 2018

no it did not

@parserpro
Copy link

no it did not

For me too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment