tab completion for tmux sessions
Clone or download
♠ ace hacker
♠ ace hacker Merge pull request #1 from jgeewax/patch-1
Update logic and auto-complete settings
Latest commit 19ced7c Mar 25, 2013
Type Name Latest commit message Commit time
Failed to load latest commit information. describe how we use find(1) Dec 1, 2011 Update logic and auto-complete settings Mar 22, 2013



tat - tmux attach utility


tat [session_name | new_session_name]


Tab completion for tmux sessions.

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


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


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


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.


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).