# session.Session.showHooks

- **Module:** session.Session
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/libtmux/src/session.ts#L156
- **Page:** https://libtmux.org/reference/ts/session-session-showhooks/

```
session.Session.showHooks() -> Promise<ReadonlyMap<string, readonly string[]>>
```

Every hook this session reports.

A hook is an array of commands, keyed by the name `setHook` takes, so
what was set reads back under the name it was set with. tmux prints each
element as `name[0]`, which composes with neither of the writers.

## Example

```ts
const hooks = await session.showHooks();
hooks.get("window-linked")?.[0];
```
