Const
Test whether a tmux session exists (tmux has-session).
tmux has-session
Optional
Readonly
Session to test for existence (-t).
-t
true when the target session exists, false when it does not.
true
false
await tmux.hasSession({ targetSession: "work" }); Copy
await tmux.hasSession({ targetSession: "work" });
Test whether a tmux session exists (
tmux has-session).