# libtmux::test::current_environment

- **Module:** libtmux::test
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/85e8bd603a322dc32bb8b9aeb1a72bcf36945f1d/include/libtmux/testing/scoped_server.hpp#L69
- **Page:** https://libtmux.org/reference/cxx/libtmux-test-current_environment/

```
libtmux::test::current_environment() -> std::vector< std::string >
```

Build and edit a `NAME=VALUE` block for a child process.

`current_environment` copies this process's; `set_environment` replaces any existing entry rather than appending; `erase_environment` removes every entry for the name.
