From 7a649eb8f6fe27865405718de37081b279326582 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Tue, 30 Mar 2021 19:46:03 -0700 Subject: [PATCH] Add shell setting examples to README (#787) --- README.adoc | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.adoc b/README.adoc index 63abefd..554a352 100644 --- a/README.adoc +++ b/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`: