just should run on any system with a reasonable
sh, including Linux, MacOS, and the BSDs.
just works with the
sh provided by Git for Windows, GitHub Desktop, or Cygwin.
If you’d rather not install
sh, you can use the
shell setting to use the shell of your choice.
# use PowerShell instead of sh: set shell := ["powershell.exe", "-c"] hello: Write-Host "Hello, world!"
# use cmd.exe instead of sh: set shell := ["cmd.exe", "/c"] list: dir
You can also set the shell using command-line arguments. For example, to use PowerShell, launch
--shell powershell.exe --shell-arg -c.
(PowerShell is installed by default on Windows 7 SP1 and Windows Server 2008 R2 S1 and later, and
cmd.exe is quite fiddly, so PowerShell is recommended for most Windows users.)