# LibTmux::Configuration::Environment.get

- **Module:** LibTmux::Configuration
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/0b5dd3d32e20f83a0069874e33eab0eb48f55962/lib/LibTmux/Configuration.rakumod#L366
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-configuration-environment-get/

```
method get(Str:D $name, Bool :$hidden = False)
```

Find a captured entry; Nil means absent from the requested visibility class.

Find a captured entry; Nil means absent from the requested visibility class.

## Parameters

- `$name` (`Str:D`)
- `$hidden?` (`Bool`)

## tmux command

The tmux commands behind `get`.

- [`show-environment`](/en/tmux/latest/manual/show-environment/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_show_environment_entry`](/en/tmux/latest/reference/c-variable-cmd_show_environment_entry/) (attribute)
- [`cmd_show_environment_exec`](/en/tmux/latest/reference/c-function-cmd-show-environment-c-cmd_show_environment_exec/) (function)

## In other ports

Read one variable from the server's environment

| Language | Equivalent |
| --- | --- |
| Python | no single-variable read; the whole table is returned |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | [`server.Server.getEnvironment`](/en/ts/latest/reference/server-server-getenvironment/) (method) |
| Rust | [`server.Server.environment`](/en/rs/latest/reference/server-server-environment/) (method) |
| Go | [`tmux.Server.GetEnvironment`](/en/go/latest/reference/tmux-server-getenvironment/) (method) |
| Java | no single-variable read; the whole table is returned |
| C# | no single-variable read; the whole table is returned |
| C++ | no single-variable read; the whole table is returned |
| Swift | no single-variable read; the whole table is returned |
| OCaml | No direct public OCaml equivalent is recorded for this operation. |
| Perl | [`LibTmux::Server::get_environment`](/en/perl/latest/reference/libtmux-server-get_environment/) (method). Omit session for the global environment. Missing or explicitly unset values remain failures. |

No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.

Read one variable from a session's environment

| Language | Equivalent |
| --- | --- |
| Python | no single-variable read; the whole table is returned |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | [`session.Session.getEnvironment`](/en/ts/latest/reference/session-session-getenvironment/) (method) |
| Rust | [`session.Session.environment`](/en/rs/latest/reference/session-session-environment/) (method) |
| Go | [`tmux.Session.GetEnvironment`](/en/go/latest/reference/tmux-session-getenvironment/) (method) |
| Java | no single-variable read; the whole table is returned |
| C# | no single-variable read; the whole table is returned |
| C++ | no single-variable read; the whole table is returned |
| Swift | no single-variable read; the whole table is returned |
| OCaml | No direct public OCaml equivalent is recorded for this operation. |
| Perl | [`LibTmux::Server::get_environment`](/en/perl/latest/reference/libtmux-server-get_environment/) (method). Pass an explicit session ID. Empty text and zero-like text remain values. |

No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.
