diff --git a/docs/scripts.md b/docs/scripts.md index 93271c9a7..95a16a388 100644 --- a/docs/scripts.md +++ b/docs/scripts.md @@ -57,3 +57,26 @@ Entering shell ... "foo": "1" } ``` + +Scripts can also have an optional description, which can be used in your `enterShell`. + +```nix title="devenv.nix" +{ pkgs, ... }: + +{ + scripts.silly-example.exec = '' + ${pkgs.curl}/bin/curl "https://httpbin.org/get?$1" | ${pkgs.jq}/bin/jq '.args' + ''; + scripts.silly-example.exec = ''simple example script''; + enterShell = '' + echo + echo 🦾 Helper scripts you can run to make your development richer: + echo 🦾 + sed -e 's| |••|g' -e 's|=| |' <