Utilities - tmuxp.util¶
Utility and helper methods for tmuxp.
-
tmuxp.util.run_before_script(script_file, cwd=None, on_line=None)¶
Execute shell script, streaming output to callback or terminal (if TTY).
Output is buffered and optionally forwarded via the
on_linecallback.
-
tmuxp.util.oh_my_zsh_auto_title()¶
Give warning and offer to fix
DISABLE_AUTO_TITLE.- Return type:
-
tmuxp.util.get_current_pane(server)¶
Return Pane if one found in env.
-
tmuxp.util.get_session(server, session_name=None, current_pane=None)¶
Get tmux session for server by session name, respects current pane, if passed.
-
tmuxp.util.get_window(session, window_name=None, current_pane=None)¶
Get tmux window for server by window name, respects current pane, if passed.
-
tmuxp.util.get_pane(window, current_pane=None)¶
Get tmux pane for server by pane name, respects current pane, if passed.