https://github.com/freddiehaddad/tsl
Tmux session launcher
https://github.com/freddiehaddad/tsl
Last synced: 8 months ago
JSON representation
Tmux session launcher
- Host: GitHub
- URL: https://github.com/freddiehaddad/tsl
- Owner: freddiehaddad
- Created: 2023-10-09T02:46:34.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-09T14:21:39.000Z (about 2 years ago)
- Last Synced: 2025-01-29T02:16:43.693Z (9 months ago)
- Language: Shell
- Size: 5.86 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TMUX Session Launcher
TSL is a BASH script that launches a tmux session named after the directory
selected from a list. Many projects are organized into directories and jumping
between them is sometimes necessary, for example, when multiple repositories are
used instead of a single mono repo.## Requirements
- bash
- fd
- fzf
- tmux## Installation
Copy the `ts` file to a directory in your `PATH`.
## Configuration
`ts` will look for directories (including symbolic links) inside
`$HOME/projects/git` by default. To scan a different location, update the
`SOURCE_DIRECTORY` variable in the `ts` script:```bash
SOURCE_DIRECTORY="$HOME/projects/git"
```## Usage
From a command prompt, type `ts`, select a directory, and press enter. A tmux
process will be created if one doesn't exist. Otherwise, the session will be
attached to the existing instance. If a session already exists, it will be made
active instead of creating a new one.If `ts` is run from within tmux, a nested session will NOT be created.