Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create tmux session instead of editing existing one #142

Open
dangbert opened this issue Jan 26, 2023 · 1 comment
Open

Create tmux session instead of editing existing one #142

dangbert opened this issue Jan 26, 2023 · 1 comment

Comments

@dangbert
Copy link

It seems like teamocil defaults to editing an existing tmux session (not sure how it picks which one either).

Is there a way to have it create a new tmux session instead first? As a workaround I'm doing: tmux new -d -s tmpsess && teamocil --layout layout.yml

Here's my example layout.yml:

name: mysess
windows:
  - name: tasks
    root: ~
    layout: tiled
    panes:
      - ./experiment.py -h
      - date && ./experiment.py -h
@remi
Copy link
Owner

remi commented Jan 30, 2023

You are right, this is not supported yet. Teamocil starts by renaming the current session: https://github.com/remi/teamocil/blob/master/lib/teamocil/tmux/session.rb#L20

This is something we could support (either renaming or creating a new session).

Do you have the time to send a pull request for this feature? I could help you with naming, implementation and stuff 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants