Manage tmux sessions with tmuxp View article history Edit article

Published: , Updated:
Talks about: <a class="post-tag post-tag-tmux" href="/tags/tmux">tmux</a>, and <a class="post-tag post-tag-tmuxp" href="/tags/tmuxp">tmuxp</a>

To manage tmux sessions, I like to use tmuxp. It works by having pre-defined sessions in ~/.config/tmuxp which looks like this:

session_name: cool-app
start_directory: ~/projects/cool-app
- window_name: backend
  start_directory: backend
- window_name: frontend
  start_directory: frontend

In case the name of the file is cool-app.yaml, you can open the sessions with tmuxp load cool-app --yes.