Skip to content

Commit

Permalink
Add shell setting examples to README (#787)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Mar 31, 2021
1 parent a1a016b commit 7a649eb
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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`:
Expand Down

0 comments on commit 7a649eb

Please sign in to comment.