https://github.com/SixArm/tmux-start
Start a tmux session with windows and keys suitable for scripting
https://github.com/SixArm/tmux-start
Last synced: 4 months ago
JSON representation
Start a tmux session with windows and keys suitable for scripting
- Host: GitHub
- URL: https://github.com/SixArm/tmux-start
- Owner: SixArm
- License: other
- Created: 2018-08-27T17:12:19.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-09-15T19:30:41.000Z (over 1 year ago)
- Last Synced: 2024-08-01T13:38:19.879Z (7 months ago)
- Language: Shell
- Size: 20.5 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# tmux-start
Start tmux with a sesson and windows.
Syntax:
tmux-start [window-name [window-keys]] ...
Example:
tmux-start mysession mywindow top
The example does this:
* If the session name "mysession" exists, then attach and exit.
* Create a new session with name "mysesssion".
* Create a window name "mywindow".
* Send the window keys "top" followed by a return,
in order to run the "top" command.## How this works
If the session name already exists:
* Attach to it then exit.
If there's a next arg:
* Create a session name by using the arg.
If there's a next arg:
* Create a window name by using the arg.
If there's a next arg:* Send window keys by using the arg.
If there's a next arg:
* Repeat the steps to create a window name and window keys.
Finally:
* Select the first window in order to make it visible.
## Install
Option 1: download the file to wherever you want, then make it executable.
cd /usr/local/bin/
sudo curl -O https://raw.githubusercontent.com/SixArm/tmux-start/master/tmux-start
sudo chmod +x tmux-startOption 2: clone the repo to anywhere you want, then add it to your path.
cd /anywhere/you/want
git clone https://github.com/SixArm/tmux-start.git
export PATH="$PATH:/anywhere/you/want/tmux-start"If you would like to help us by writing a package for any popular package manager, such as apt, yum, brew, etc., we wecome help.
## Comparisons
The [tmuxinator](https://github.com/tmuxinator/tmuxinator) program
can manage complex tmux sessions easily, such as by using YAML files,
and providing split screen, project hooks, completions, and more.## Project goals
Short and simple-- easy to understand.
Free open source-- easy to modify.
POSIX shell usability-- easy to run anywhere.
## Tracking
* Program: tmux-start
* Version: 5.0.0
* Created: 2013-08-02T00:00:00Z
* Updated: 2021-10-28T16:40:50Z
* License: GPL-2.0-or-greater or contact us for custom license
* Contact: Joel Parker Henderson ([email protected])