Const
Select the previously selected window (tmux last-window).
tmux last-window
Optional
Readonly
Target session whose last (previously selected) window is selected (-t).
-t
An empty string on success.
await tmux.lastWindow({ targetSession: "work" }); Copy
await tmux.lastWindow({ targetSession: "work" });
Select the previously selected window (
tmux last-window).