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

The configuration reference

What follows is the configuration file that we built over the course of Chapter 2, Configuring tmux:

# Enable mouse mode for mouse scrolling (tmux 1.9a+)
set-window-option –g mouse-mode on
# Enable mouse for selecting the window by clicking on the title
# in the status bar
set-option -g mouse-select-window on
# Enable mouse for selecting the pane by clicking on it
set-option -g mouse-select-pane on
# Enable the mouse for clicking and dragging to resize panes
set-option -g mouse-resize-pane on

# Set the status bar background to blue
set-option -g status-bg blue
# Set the status bar text to white
set-option -g status-fg white

# Widen the status-left a bit to fit more
set-option -g status-left-length 25
# Change status-left to be {username@host}
set-option -g status-left "{#(whoami)@#H}"

# Set the active window background in the status bar
set-window-option –g window-status-current-bg magenta

# Rebind the prefix key
set-option -g prefix...
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