How I manage my tmuxinator files using AarKay
I am a big fan of Tmux and Tmuxinator. It makes it so easy to switch between multiple projects using sessions.
To add a new a project in Tmuxinator, we generally use the following:-
tmuxinator new [project]
A new file with default template is opened which we can edit with our configuration and add to our tmuxinator directory.
Lets say you want to create mulitple tmuxinator projects that have the same configuration of windows? 🤣
I have been working on a tool, called aarkay, for a long time to make such tasks simple and fast.
Let’s try adding projects in Tmuxinator using aarkay in just 3 steps.
- Creating a template
- Create the data
- Run aarkay
Let’s create a template for Tmux inside ~/Developer/AarKay/AarKayTemplates/AarKay/Mux.yml.stencil
Let’s create our data at ~/Developer/AarKay/AarKayFiles/RahulKatariya/macOS/dotfiles/tmuxinator/[rk].Mux.yml
The last step is to run aarkay inside the destination folder.
All my tmuxinator projects are created with a single command 😊
This is just one small use case of the tool.
Happy Templating! 😎