Skip to content

Add support for running script on session creation#113

Merged
jrmoulton merged 1 commit intojrmoulton:mainfrom
petersimonsson:create-script
Aug 4, 2024
Merged

Add support for running script on session creation#113
jrmoulton merged 1 commit intojrmoulton:mainfrom
petersimonsson:create-script

Conversation

@petersimonsson
Copy link
Collaborator

Looks for a script named .tms-create in the path of the session being created. Runs it by sending keys to the first window's top pane. The script needs to be executable.

This can be overridden by adding something like the following to the config file:
[session-configs.session_name]
create_script = "my-create.sh"

fixes #33

Looks for a script named .tms-create in the path of the session being
created. Runs it by sending keys to the first window's top pane.
The script needs to be executable.

This can be overridden by adding something like the following to the
config file:
[session-configs.session_name]
create_script = "my-create.sh"

fixes jrmoulton#33
@jrmoulton jrmoulton merged commit 33d5e9b into jrmoulton:main Aug 4, 2024
@petersimonsson petersimonsson deleted the create-script branch August 6, 2024 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hooks on creating/closing session from a repo

2 participants