On this page
session.Session.fromEnv
- Module
- session
- Declared in
- Session
- Package
- @libtmux/libtmux
- Source
- packages/libtmux/src/session.ts
-
Resolve the session this process is running inside.
The pane is authoritative:
$TMUX's exported session id goes stale when a pane is moved, so the session is looked up through$TMUX_PANEinstead.Examples
const current = await Session.fromEnv(); current.name;Discussed in Environment
0 declared, 0 inherited