2KAbhishek / tmux-tea

tmux sessions as easy as tea ā˜•šŸŖŸ
GNU General Public License v3.0
21 stars 1 forks source link
manager plugin session tmux utility

tmux-tea

License People Stars Forks Watches Last Updated

tmux sessions as easy as tea ā˜•šŸŖŸ

tmux-tea in action
tmux-tea in action

tmux-tea is a tmux session manager aimed at simplifying and speeding up how you interact with tmux sessions. It's a one key solution to all your tmux session needs.

āœØ Features

Setup

āš” Requirements

šŸš€ Installation

Add the following to your ~/.tmux.conf

set -g @plugin '2kabhishek/tmux-tea'
cd ~/.tmux/plugins/tmux-tea # replace ~/.tmux/plugins with your plugin installation path
ln -sfnv $PWD/bin/tea.sh  ~/.local/bin/tea # Add tea to $PATH, make sure ~/.local/bin is in your $PATH

šŸ’» Usage

There are two ways to open tea

Keybindings

tmuxinator integration

If you have a .tmuxinator.yml file in your directory, tea will use it for setting up your session.

If you have a tmuxinator config file in ~/.config/tmuxinator/ that has the same name as your tmux session directory then that will be used.

If none of these are present a tmux session is created from scratch.

zsh integration

If you use zsh you can add the <C-t> binding outside tmux as well using this sni[[ed]]

bindkey -s '^T' ' tea^M ^M'

full session names

You can set the session name to be the full path you select instead of the directory using:

set -g @tea-session-name "full-path"

Behind The Code

šŸŒˆ Inspiration

tmux-tea was inspired by t-smart-tmux-session-manager and shares a lot of code.

I wanted to add some more features that diverged from the original repo and wanted to keep the configs simpler.

šŸ’” Challenges/Learnings

šŸ§° Tooling

šŸ” More Info


ā­ hit the star button if you found this useful ā­
Source | Blog | Twitter | LinkedIn | More Links | Other Projects