25 lines
1 KiB
Markdown
Executable file
25 lines
1 KiB
Markdown
Executable file
## [windownizer](../../scripts/windownizer)
|
|
|
|
This script is designed to streamline the process of sending commands to a specific tmux window or a WezTerm tab. It takes a branch name (or any identifier) as an argument, creates a new window/tab if it doesn't exist in the current tmux session or WezTerm instance, and sends the provided command to that window/tab.
|
|
|
|
### Usage
|
|
|
|
Run the script with the branch name and the command you want to send:
|
|
|
|
```bash
|
|
./windownizer branch_name command_to_send
|
|
```
|
|
|
|
- `branch_name`: The branch name (or any identifier) for the target window/tab.
|
|
- `command_to_send`: The command you want to send to the specified tmux window or WezTerm tab.
|
|
|
|
### Example Usage
|
|
|
|
Assuming you have a tmux session named "my_session" and want to send a command to a window associated with the branch "feature/awesome-feature":
|
|
|
|
```bash
|
|
./windownizer feature/awesome-feature "your_command_here"
|
|
```
|
|
|
|
If the window for "feature/awesome-feature" doesn't exist in the "my_session" tmux session, the script creates a new window for it before sending the command.
|
|
|