tmux 2 by Hogan Brian P
Author:Hogan, Brian P.
Language: eng
Format: epub
Tags: Pragmatic Bookshelf
Publisher: Pragmatic Bookshelf
Published: 2016-11-17T00:00:00+00:00
Targeting Specific Panes and Windows
With commands such as send-keys, you can specify not only the target session, but also the target window and pane. In the configuration file you created back in Chapter 2, Configuring tmux, you specified a base-index of 1, meaning that your window numbering starts at 1. This base index doesn’t affect the panes, though, which is why you also set the pane-base-index to 1. In our case, we have two panes in our current setup, like the following example:
--------------------------
| |
| Pane 1 |
| |
--------------------------
| Pane 2 |
--------------------------
We have the Vim text editor open in Pane 1, and we want to send a command to Pane 2 that changes to our project directory. We target a pane using the format [session]:[window].[pane], so to target Pane 2, we’d use development:1.2. So, add this line to your script, and you’ll get exactly what you want:
tmux send-keys -t development:1.2 'cd ~/devproject' C-m
We’re almost there. Let’s finish up this configuration by adding a couple more windows to the session.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Coding Theory | Localization |
Logic | Object-Oriented Design |
Performance Optimization | Quality Control |
Reengineering | Robohelp |
Software Development | Software Reuse |
Structured Design | Testing |
Tools | UML |
Deep Learning with Python by François Chollet(11920)
Hello! Python by Anthony Briggs(9383)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9352)
The Mikado Method by Ola Ellnestam Daniel Brolund(9321)
Dependency Injection in .NET by Mark Seemann(8866)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(7858)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7348)
Grails in Action by Glen Smith Peter Ledbrook(7303)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7124)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(5968)
Kotlin in Action by Dmitry Jemerov(4653)
Practical Vim (for Kathryn Amaral) by Drew Neil(3731)
Cracking the GRE Premium Edition with 6 Practice Tests, 2015 (Graduate School Test Preparation) by Princeton Review(3600)
Linux Device Driver Development Cookbook by Rodolfo Giometti(3446)
Learn Windows PowerShell in a Month of Lunches by Don Jones(3252)
Learning Java by Patrick Niemeyer & Daniel Leuck(2873)
Learning React: Functional Web Development with React and Redux by Banks Alex & Porcello Eve(2844)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(2832)
Microservices with Go by Alexander Shuiskov(2622)