aboutsummaryrefslogtreecommitdiff
path: root/src/nix/shell.md
diff options
context:
space:
mode:
authorSolène Rapenne <solene.rapenne@tweag.io>2022-07-20 14:53:03 +0200
committerSolène Rapenne <solene.rapenne@tweag.io>2022-07-20 14:54:46 +0200
commit64404220f54a36d3457433580ab8d78cf016572d (patch)
treed7eaa2e29b9a9731a5d831106259ebe4ae395e09 /src/nix/shell.md
parentfbd0a6c6e2e87f6679fe5cabaddaa877cf3e5a90 (diff)
nix shell: document how to invoke multiple commands from the command line
Diffstat (limited to 'src/nix/shell.md')
-rw-r--r--src/nix/shell.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nix/shell.md b/src/nix/shell.md
index 90b81fb2f..161fdeb8d 100644
--- a/src/nix/shell.md
+++ b/src/nix/shell.md
@@ -23,6 +23,12 @@ R""(
Hi everybody!
```
+* Run multiple commands in a shell environment:
+
+ ```console
+ # nix shell nixpkgs#gnumake -c /bin/sh -c "cd src && make"
+ ```
+
* Run GNU Hello in a chroot store:
```console