Giter Club home page Giter Club logo

Comments (2)

remi avatar remi commented on May 25, 2024

Hi @CaptainQuirk,

As far as I know, there doesn’t seem to be a way to send commands to tmux right after it starts. This is not feature I’m considering implementing myself since I usually don’t quit tmux at all. I keep it open all the time and just launch teamocil layouts from there.

Let me know if you find a way to do that you want!

from teamocil.

CaptainQuirk avatar CaptainQuirk commented on May 25, 2024

Hi @remiprev , thanks for your quick response

I found the way to do it.
My first attempt was wrong :

tmux -c "teamocil --here --layout=layout.yml"

I misinterpreted the meaning of the -c flag, which makes tmux pass a command to the current shell. That's why the following :

tmux -c "echo 'hello world'"

just prints 'hello world' in the shell the command was run from.

But, the following syntax worked (almost)

tmux new-session "teamocil --here --layout=layout.yml"

The only problem I'm encountering is that my first entry in my teamocil yml file is overwritten by the second. Do you know why ?

Merci !

from teamocil.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.