Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Getting Started with tmux

You're reading from   Getting Started with tmux Maximize your productivity by accessing several terminal sessions from a single window using tmux

Arrow left icon
Product type Paperback
Published in Sep 2014
Publisher Packt
ISBN-13 9781783985166
Length 148 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Victor Quinn Victor Quinn
Author Profile Icon Victor Quinn
Victor Quinn
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Jump Right In 2. Configuring tmux FREE CHAPTER 3. Sessions, Windows, and Panes 4. Manipulating Text 5. Diving Deeper 6. tmux for SSH, Pair Programming, and More 7. Using Other Tools with tmux A. Appendix Index

Launching with defaults


Imagine you integrate tmux into your workflow such that you get very used to certain things being in certain places, perhaps a shell at the root of your code repository in window 1, Emacs in window 2, top in window 3, and so on. Now every time you reboot your machine, you spend some time to set up everything again, start a new session, create three windows, launch the programs in each window, and so on; there must be a better way. Of course there is!

tmux gives us some ways to configure things with nice defaults out of the box. We'll also see another way to do this later in Chapter 7, Using Other Tools with tmux, with a third-party utility.

So let's take the previous example and run through it. There are ways to make some of this happen within your .tmux.conf, file but it's generally more powerful to do it externally via a separate bash script. So hop into your favorite editor and start editing a new file named .tmux.defaults. You can name this file anything, so if...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime