Lab419, Programmers' Best Friend

Tmux

Tmux needs Ruby 2.

Common Observations

Unless otherwise stated all lab419_* commands implemented by this gem are determining a session\_name as the basename of the first argument, which shall be an existing directory.

In case a tmux session with the thusly determined session_name already exists the aforementioned script just attaches to the session with the tmux attach command. Otherwise a session with name session_name is created and windows and panes are created and configured as specified by the script in question and its parameters.

Predefined Scripts

lab419_tmux

  lab419_tmux some_path [windows: n]

Will open a session with n additional windows, each window will be cwed into some_path

Tmux::Command API

This is inherited from my private, non TDD :@, driven project, only the script present in this release is protected by cucumber specs. The Lab419::Tmux::Command API will be speced and documented in later versions of this gem. This version serves as a useable tool but do not consider the API stable.