# WIP: Add a setting to visually redact enviroment variables \(\#7124\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/f98d63620327b9086371a341c743f79ca45566e4)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: f98d63620327b9086371a341c743f79ca45566e4

Requested commit: f98d63620327b9086371a341c743f79ca45566e4

Commit: f98d63620327b9086371a341c743f79ca45566e4

Tree: af15d551847499fed5d8f1aa829ec69e9baf8824

Author: Mikayla Maki

Committer: GitHub

## Message

```
WIP: Add a setting to visually redact enviroment variables (#7124)

Release Notes:

- Added bash syntax highlighting to `.env` files. 
- Added a `private_files` setting for configuring which files should be
considered to contain environment variables or other sensitive
information.
- Added a `redact_private_values` setting to add or remove censor bars
over variable values in files matching the `private_files` patterns.
-(internal) added a new `redactions.scm` query to our language support,
allowing different config file formats to indicate where environment
variable values can be identified in the syntax tree, added this query
to `bash`, `json`, `toml`, and `yaml` files.

---------

Co-authored-by: Nathan <nathan@zed.dev>
```

## Parents

- [5333eff0e4805a56f299c44e2d27354745b71f2c](https://git.cafe/gitcafe/zed/commit/5333eff0e4805a56f299c44e2d27354745b71f2c?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/f98d63620327b9086371a341c743f79ca45566e4?format=markdown)
