Project

just-tmux

0.0
No commit activity in last 3 years
No release in over 3 years
Outputs a string of tmux instructions for execution by the system. Commands for each Tmux window are stored in the Dynarex document.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.8, >= 1.8.20
 Project Readme

Introducing the just-tmux gem

If you need to open tmux windows to run scripts from the command-line then this gem might be for you.

Example:

require 'just-tmux'

tmux_config =<<EOF
<?dynarex schema="tmux[session, shell, default_dir]/window(command, name, dir)"?>
session: fun
shell: bash
default_dir: ~

lis
pwd  home  /home/james/ruby
EOF

# note: the window name and directory are optional

dynarex = Dynarex.new
dynarex.import tmux_config
dynarex.save 'tmux-config.xml'
puts JustTmux.new('tmux-config.xml').to_s

output:

tmux new-session -d -s fun -n bash 'bash'
tmux send-keys 'cd /home/james && lis' Enter
tmux new-window -n home bash
tmux send-keys 'cd /home/james/ruby && pwd' Enter

Note: A Dynarex document can now be passed in. test2b

tmux justtmux gem windows commandline