Add shell setting examples to README (#787)
This commit is contained in:
parent
a1a016b4e0
commit
7a649eb8f6
26
README.adoc
26
README.adoc
@ -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`:
|
||||
|
Loading…
Reference in New Issue
Block a user