Mention set shell as altenative to installing sh (#533)

Mention that `set shell := [...]` can be used as an alternative to installing `sh`
in the installation section.
This commit is contained in:
Casey Rodarmor 2019-11-13 15:26:07 -08:00 committed by GitHub
parent c40d16f2a2
commit 7046443b39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,6 +50,30 @@ toc::[]
On Windows, `just` works with the `sh` provided by https://git-scm.com[Git for Windows], https://desktop.github.com[GitHub Desktop], and http://www.cygwin.com[Cygwin].
If you'd rather not install `sh`, you can use the `shell` setting to use the shell of your choice.
Like `cmd.exe`:
```make
# use cmd.exe instead of sh:
set shell := ["cmd.exe", "/c"]
list:
dir
```
…or Powershell:
```make
# use Powershell instead of sh:
set shell := ["powershell.exe", "-c"]
hello:
Write-Host "Hello, world!"
```
=== Pre-built Binaries
Pre-built binaries for Linux, MacOS, and Windows can be found on https://github.com/casey/just/releases[the releases page].