Git Product home page Git Product logo

Comments (3)

PietroPasotti avatar PietroPasotti commented on August 28, 2024 1

I think a better place for this would be the charm-dev multipass blueprint

from jhack.

PietroPasotti avatar PietroPasotti commented on August 28, 2024

funny enough I'd considered this in the past but I encountered a couple of issues:

  • tmux is hard to script: I'm using tmux-resurrect to autoload the layout, but I couldn't yet find a way to save/load what commands are running on each pane
  • I found it hard to generalize, as everyone likes their terminals :)

from jhack.

taurus-forever avatar taurus-forever commented on August 28, 2024

My tmux oneliner:

ubuntu@juju342:~$ cat ./new_model_tmux.sh 
#/bin/bash

juju add-model "test$(date +%s)" && tmux new-session '' \; \
  split-window -v \; \
  send-keys "echo 'Type your Juju commands here... '" C-m \; \
  split-window -h \; \
  send-keys 'juju status --watch 1s' C-m \; \
  split-window -v \; \
  send-keys 'juju model-config "logging-config=<root>=INFO;unit=DEBUG" ' C-m \; \
  send-keys 'juju debug-log --tail' C-m \; \
  split-window -v \; \
  send-keys 'juju debug-log --tail | grep ERROR' C-m \; \
  split-window -v \; \
  send-keys 'jhack tail' C-m \; \

tmux -2 attach-session -d

ubuntu@juju342:~$ ./new_model_tmux.sh 

As I am bored to type the same commands many times...

I agree, all pencils have different colors and flavors, but we have no recommendation/best-practices for newbies (which are comfortable to use AS IS).

from jhack.

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.