Skip to content

ryandotsmith/tat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

TAT(1)

Name

tat - tmux attach utility

Synopsis

tat [session_name | new_session_name]

Description

Tab completion for tmux sessions.

Quickly open new tmux sessions in your project's dir.

Setup

git clone git://github.com/ryandotsmith/tat.git ~/path/to/tat
echo "source ~/path/to/tat/tat.sh" >> ~/.bashrc
echo "export CODE_ROOT_DIRS=\"/home/you/code\"" >> ~/.bashrc
echo "export CODE_ROOT_DIRS=\"/home/you/other_code_dir:$CODE_ROOT_DIRS\"" >> ~/.bashrc

Usage

Use the tab key to open an existing session.

$ tat [TAB]
open_session_1 open_session_2

Arguments that are passed to tat will be used to create a new session. Tat will open a new tmux session and set the default path to the found dir.

$ tat my_project
$ pwd
/home/you/code/my_project

Motivation

There are popular tmux helpers on github. They require ruby and yaml file. No thanks! It is my opinion that bash is the right tool for the job here. UNIX doesn't care about yaml.

Issues

tat(1) assumes you have your code in "root" directories. We use find(1) to scan (with max-depth=1) the directories to find one that matches your argument to tat(1).

About

tab completion for tmux sessions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages