Code Monkey home page Code Monkey logo

tummy's Introduction

Gem Version

Tummy

Use a Tmuxfile with your tmux configuration to easily manage sessions

Demo

Installation

$ gem install tummy

Usage

put a Tmuxfile in your app's root by running the tummy init command

example Tmuxfile

session "z2-web"
directory "/home/minhajuddin/z2/web"

window "src", [
  pane("vim TODO"),
]

window "server-iex", [
  pane("iex -S mix phoenix.server"),
  # the last argument is passed to tmux as raw arguments
  pane("iex -S mix", :horizontal, "-l 20"),
  pane("git status", :vertical),
]

window "play", [
  pane("echo hey"),
  pane("date", :horizontal),
  pane("echo awesome", :vertical),
]

# if you comment this out it will focus the first window when the session is started
focus_window "server-iex"
# focus_window 0 # you can even focus a window by index starting at 0

Now whenever you run the tummy command from this directory it will setup your sessions properly The Tmuxfile is a regular ruby file. If a tmux session with this name is already running it will just connect to that session

tummy's People

Contributors

minhajuddin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tummy's Issues

Allow setting default window with 0 as default

Thanks for this! Not a huge fan of tmuxinator's global list of projects.

One minor frustration I'm experiencing is that I set up window 0 as an editor/server window, with windows 1+ for auxiliary tasks. Whenever I launch a session, I'm always dropped into the last window I create.

Is there some way to set a default window? It might also be nice to default to window 0 if one isn't set, since I'd assume 0 is where most main tasks are run. I suppose this might break if the window index is set to 1, so I'm not immediately sure how to handle that. New to tmux.

Thanks!

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.