aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/devenv.md
blob: 3f9ccc36b59679704aecce64f650caa10db11339 (plain)
1
2
3
4
5
6
7
8
9
10
11
## Dump devenv into file and select format

`meson devenv --dump [<filename>]` command now takes an optional filename argument
to write the environment into a file instead of printing to stdout.

A new `--dump-format` argument has been added to select which shell format
should be used. There are currently 3 formats supported:
- `sh`: Lines are in the format `VAR=/prepend:$VAR:/append`.
- `export`: Same as `sh` but with extra `export VAR` lines.
- `vscode`: Same as `sh` but without `$VAR` substitution because they do not
  seems to be properly supported by vscode.