# libtmux::test::current_environment

- **Module:** libtmux::test
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/393d4b0ad666f18a6581f1eb281741a75a7503f0/include/libtmux/testing/scoped_server.hpp#L69
- **Page:** https://libtmux.org/en/cxx/latest/reference/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.
