Add shell setting examples to README (#787)

This commit is contained in:
Casey Rodarmor 2021-03-30 19:46:03 -07:00 committed by GitHub
parent a1a016b4e0
commit 7a649eb8f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -445,6 +445,32 @@ foo:
print("{{foos}}")
```
Just passes the command to be executed as an argument. Many shells will need an additional flag, often `-c`, to make them evaluate the first argument.
===== Python 3
```make
set shell := ["python3", "-c"]
```
===== Bash
```make
set shell := ["bash", "-uc"]
```
===== Z Shell
```make
set shell := ["zsh", "-uc"]
```
===== Fish
```make
set shell := ["fish", "-c"]
```
=== Documentation Comments
Comments immediately preceding a recipe will appear in `just --list`: