tmuxp.plugin.TmuxpPlugin.before_script
Python
- Python
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
-
Provide a session hook after the workspace has been built.
This runs after the workspace has been loaded with
tmuxp load. It augments instead of replaces thebefore_scriptsection of the workspace data.This hook provides access to the LibTmux.session object for any behavior that would be used in the
before_scriptsection of the workspace file that needs access directly to the session object. This runs after the workspace has been loaded withtmuxp load.The hook augments, rather than replaces, the
before_scriptsection of the workspace. While it is possible to do all of thebefore_scriptworkspace in this function, if a shell script is currently being used for the workspace, it would be cleaner to continue using the script in thebefore_section.If changes to the session need to be made prior to anything being built, please use
before_workspace_builderinstead.- Parameters
-
-
session ( Session ) – session to hook into
-
Discussed in Workspace Manager for Go (in development) , tmuxp load , Install and load a workspace , Go workspace internals , Go workspace builder behavior , Workspace hooks and builders , tmuxp compatibility and port status