tmuxp.util.run_before_script
- tmuxp.util.run_before_script ( script_file: str | pathlib
.Path , cwd: pathlib.Path | None = None, on_line: t.Callable [[str], None] | None = None, ) int -
Execute shell script, streaming output to callback or terminal (if TTY).
Description#
Output is buffered and optionally forwarded via the
on_linecallback.- Parameters
-
-
script_file(str | pathlib.Path ) # -
cwd(pathlib.Path | None) #
-