Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

ta

Attach to a tmux session. When there are multiple sessions, pick one with fzf. When there is only one, attach directly.

Dependencies

  • tmux
  • fzf

Usage

ta [query]

If run from inside tmux, switches the client to the selected session. If run outside, attaches to it.

With no argument, all sessions are listed. If there is only one, it attaches immediately.

query can be:

  • A session number (e.g. 0, 2) — attaches directly without a list.
  • An exact session name — attaches directly.
  • A substring — if one session matches, attaches directly; if several match, they are listed in fzf.

The fzf list shows the session name (or the active window name for auto-numbered sessions), the active window name, and whether the session is currently attached.

Installation

Copy ta somewhere on your PATH and make it executable.

cp ta ~/.local/bin/ta
chmod +x ~/.local/bin/ta

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages