# cmd_show_environment_entry

- **Language:** C
- **Kind:** attribute
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-environment.c#L37
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-variable-cmd_show_environment_entry/

tmux command: [`show-environment`](/en/tmux/3.7c/manual/show-environment/)

```c
const struct cmd_entry cmd_show_environment_entry = {
    .name = "show-environment",
    .alias = "showenv",

    .args = { "hgst:", 0, 1, NULL },
    .usage = "[-hgs] " "[-t target-session]" " [variable]",

    .target = { 't', CMD_FIND_SESSION, 0x40 },

    .flags = 0x4 ,
    .exec = cmd_show_environment_exec
};
```

## Other function references

- [`cmd_show_environment_exec`](/en/tmux/3.7c/reference/c-function-cmd-show-environment-c-cmd_show_environment_exec/) (function)

## Referenced declarations

- [`args`](/en/tmux/3.7c/reference/c-struct-args/) (struct)
- [`cmd_entry`](/en/tmux/3.7c/reference/c-struct-cmd_entry/) (struct)
- [`CMD_FIND_SESSION`](/en/tmux/3.7c/reference/c-enum-cmd_find_type-cmd_find_session/) (constant)
- [`session`](/en/tmux/3.7c/reference/c-struct-session/) (struct)
