Utilities - tmuxp.util¶
Utility and helper methods for tmuxp.
-
tmuxp.util.run_before_script(script_file, cwd=None, on_line=None)¶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()¶tmuxp.util.oh_my_zsh_auto_title()¶
Give warning and offer to fix
DISABLE_AUTO_TITLE.- Return type:
-
tmuxp.util.get_current_pane(server)¶tmuxp.util.get_current_pane(server)¶
Return Pane if one found in env.
-
tmuxp.util.get_session(server, session_name=None, current_pane=None)¶tmuxp.util.get_session(server, session_name=None, current_pane=None)¶
Get tmux session for server by session name, respects current pane, if passed.