Skip to content

Instantly share code, notes, and snippets.

@danielTobon43
Last active August 30, 2021 14:09
Show Gist options
  • Save danielTobon43/94f6e8673c0e3a248485a13848dccd2b to your computer and use it in GitHub Desktop.
Save danielTobon43/94f6e8673c0e3a248485a13848dccd2b to your computer and use it in GitHub Desktop.

Setting Bash on Windows

1. Download and install git: https://git-scm.com/downloads
2. Append git/bin and git/cmd directories to system path environment variable

git-env-var

  • The /bin directory contains the bash.exe and sh.exe executables
  • The /cmd directory contains the git.exe executable

Testing bash

1. Open a cmd terminal or powershell
2. Run bash.exe test.sh

Expected result

bash-test

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