Today I Learned

hashrocket A Hashrocket project

Tmux command targets

With a new commit to our environment to enable project specific tmux configurations its been fun to dig into tmux automation.

tmux send-keys -t seq27:0.0 'vim .' C-m

Will send the keys 'vim .' to a very specific target -t seq27:0.0

seq27 = the name of the session

0 = the first window of that session

0 = the first pane of that window

Thats how you can open vim in a specific pane in your tmux session automatically!

See More #command-line TILs