By Developers, For Developers

Historical errata for tmux

PDF PgPaper PgTypeDescriptionFixed onComments
?TYPO

Around location 95 under the “Conventions” heading.

The first bullet point reads:
CTRL B means “press the Control and b keys simultaneously”

I think that should read:
CTRL b means “press the Control and b keys simultaneously”

since the next bullet point talks about CTRL R and that you won’t explicitly show the SHIFT key in the keystrokes

2012-03-01
10TYPO

In the “Closing Panes” section, the command listed is “PREFIX X” but on my Mac running tmux 1.6 it seems the X needs to be lowercase.

In general the choice of font for the shortcut keys is confusing, especially with a small-caps version of Prefix right to the left.

2012-03-01
?TYPO

Around location 270 under “Closing Panes”
says to kill a pane with “PREFIX X” but i have to use “PREFIX x” on ubuntu 11.10 using tmux 1.6

2012-03-01
?TYPO

Around location 320 in the summary is states:
PREFIX W Displays a selectable list of windows in the current session

but I believe this should be
PREFIX w

2012-03-01
21ERROR

PREFIX X to close a pane should be use x

2012-03-01
65TYPO

It can then run the left side of the expression, which creates a new session with our username as the session’s name.
should be:
“right side”

2012-03-02
99ERROR

In the mobipocket version of the book, it shows no difference between Ctrl-b and Ctrl-B keyboard shortcuts. Both show as CTRL B in “Kindle for PC” and "Mobipocket Reader 6.2) at least. Location 99 in Kindle.

2012-03-01
25ERROR

In this line:
We can use color0 to color255

color should be written as colour (with a “u” in it), at least on my system (tmux 1.6 on Ubuntu 11.10), otherwise tmux says “bad colour”.

2012-03-02
54TYPO

The text at the bottom of the page should contain >> but has been escaped to >&gt
—- [snip] —-
Back on the server, we add the key to the authorized_keys file.
tmux@puzzles$ cat id_rsa.pub >> ~/.ssh/authorized_keys

2012-03-02
54TYPO

In PDF, almost last on page:

tmux@puzzles$ cat id_rsa.pub >> ~/.ssh/authorized_keys

“>” should be a “>”

2012-03-02
42TYPO

“-v” splits vertically

tmux split-window -v -p 10 -t development
Splits the current window in the “development” session horizontally but sets its height to 10% of the total window size.

2012-03-02Will clarify this. THe split is vertical, the window is divided with a horizontal line.
50TYPO

set -g default-command “reattach-to-user-namespace -l /bin/bash is missing a ” at the end

2012-03-02
10TYPO

Closing Panes - “You can also kill a pane with PREFIX X” - that should be PREFIX x (lowercase).

2012-03-02
10OK

Sorry for the duplicate submission. I seem to recall that in the past the PragProg errata submission links have included the relevant page number, and taken you to an erratum submission page that told you what errata had already been reported for the relevant book page and version. That was much better!

2012-04-02I'll pass this along.
20TYPO

Resizing Panes - “We’ll use PREFIX h, PREFIX j, PREFIX k, and PREFIX l to change the size of the panes:” - those should be uppercase H, J, K and L, as shown in the bindings that follow.

2012-03-06
12-13SUGGEST

For Future Reference section - a couple of small suggestions: (1) I think you should use the shorter form ‘new’ rather than ‘new-session’ here, as earlier you wrote that you would be doing that for the rest of the book; (2) over the page you tell us about PREFIX q - surprising, as we didn’t see this in the earlier section on panes. I guess that it relates to content in an earlier draft, and shouldn’t be in this summary section now.

2012-03-06
31SUGGEST

In the “For Future Reference” section on this page, the sentence “Can be shortened to bind.” should be in the description of bind-key, not in the description of bind-key -r.

2012-03-06
69,71SUGGEST

Provided .tmux.conf configuration file at first defines PREFIX h as select left pane
bind h select-pane -L
and then overrides PREFIX h as split panes in the same directory
bind h send-keys " ~/tmux-panes -v" C-m
It would be better not to use the same key - probably would be better to use different key for splitting panges in the same directory.

2012-03-06
2110TYPO

…kill a pane with Prefix X,

However, it should be a lowercase x (I think) since the uppercase X doesn’t seem to do anything.

2012-03-08Duplicate. Fixed :)
54TYPO

hi there - great book - you probably want to unhtml escape the command:

tmux@puzzles$ cat id_rsa.pub >> ~/.ssh/authorized_keys

2012-03-08Duplicate
45TYPO

On various pages in the epub version, the line-height/leading on code examples gets messed up. It seems to happen when a block of code has to continue to the next page at the start of the 2nd page.

hxxp://i.imgur.com/Na2NY.jpg (page 71 of 126, chapter 3.1 in iBooks portrait)

2013-04-30
23TYPO

The wget line for retrieving “colortest”, the “-O colortest” is not the same colour as the rest of the wget command

2012-07-24
2SUGGEST

On Ubuntu 10.04.4 LTS (Lucid) the default version is missing features. In Update Manager -> Settings -> Updates choose "Unsupported updates (lucid-backports), then install the more up-to-date version using Synaptic or Aptitude.

2012-09-23Good suggestion, but I think that the sentence about out-of-date package managers applies here.
31-34OK

Page number in PDF jumps from 31 - 34 with only one page between the two (specifically, the start of Chapter 3, which has no page number). Additionally, the header format changes from “outside-edge” alignment to inside-edge alignment when printed in booklet format.

2012-07-24The PDF version skips blank pages on purpose. It's not meant to be printed as a book.
23SUGGEST

The colouring of the word colortest (the -O option) in the wget statement is black when the rest of the wget command is rendered in purple. Ideally, it should be purple as well.

2012-07-24
22ERROR

The default Homebrew build seems to use ‘Prefix x’ to kill a pane rather than ‘Prefix X’ as listed in the book.

2012-07-24
40TYPO

The command at the top of the page (`tmuxinator open development`) starts editing a config file called ‘development.yml’, but the commands on the following page start using a project called ‘devproject’. With tmuxinator (version 0.5.0 at least) these commands result in an error “There’s no command or project ‘devproject’ in tmuxinator”.

2012-07-24
60ERROR

The commands for maximizing and restoring panes throws errors (’Can’t find pane #n etc, and just spawns a new window)

2012-07-24Cannot reproduce. If you didn't change the pane-base-index option it may not work for you.
9SUGGEST

Following along with book, section 1.5 will produce a warning/error

sessions should be nested with care. unset $TMUX to force.

Consider doing:

1: explaining the error, and warn about avoiding nesting
2. open a new window instead of a session
3. add instructions to close open session first before opening new one

or some combination of the above.

2012-07-24
956TYPO

Ebook approx location 960
4.2 Copying and Pasting Text
3rd paragraph in

It says “To paste the contents we just captured, we switch to Copy mode and press PREFIX ].”

On my workstation (ubuntu 12.04, tmux 1.6) I do not have to enter Copy mode in order to paste. I only use PREFIX ]

I think the revised sentence should be:
“To paste the contents we just captured press PREFIX ].”

2012-07-24
60TYPO

join-panes command needs to be fixed. It should be join-pane -s 1.1

2012-07-24
13SUGGEST

On a fresh install of Mac OS X Lion, I installed Xcode and Homebrew, then ran “brew install tmux​​” as instructed. Homebrew reports: “Error: No available formula for tmux”. Maybe there’s a bug or change in the latest Homebrew? However, it’s simple to install from source yourself if you search online (no links allowed here in these comments). For example, ask Google about “Installing and setting up tmux on Mac OS Lion”.

2012-07-24I cannot seem to reproduce this.
64TYPO

the “has-session” example at the top of the page checks for the existance of a “remote” session, but creates (and connects) to a “development” session

2012-07-24
60TYPO

“keeping in mind that while we set our windows to start with an index of one, our panes always start with an index of zero:”, this assertion is untrue since p.17 we set the “pane-base-index” option to 1 in order to “have some consistency between our pane and window numbering.”

The “join-pane -s 1.0” that follow is also wrong (but erratum #49386 already reported that problem.)

2012-07-24
17-18OK

In 2.2 Customizing Keys, Commands, and User Input, the book says: “Not only is PREFIX % hard to press, as it involves
holding three keys, but without looking at the command reference, there’s no easy way to remember what it does”.

But it IS easy to remember. Look at the per cent sign. Clearly there is a bubble split in two with a slash!

This mnemonic could be mentioned.

2012-09-25Might revisit this later.
allOK

Grep all occurrences for the word “simply” and remove 99% of them. Will make the book a hundred times better. We need to stop this “simply” epidemic before it kills all intelligent beings. Thanks.

2012-07-20Leaving this as is.
19OK

The book says:
“We’ll set the horizontal split to PREFIX | and the vertical split to PREFIX - .”
and:
“At first glance, this may look backwards…”

It’s not just at first glance. The tmux terminology IS backwards. Vertical split is vertical not horizontal. You are right, tmux is wrong.

You don’t need to be apologetic about making sense! So don’t say “We’ll set the horizontal split to PREFIX | and the vertical split to PREFIX - .” because that is a lie.

Let’s save the human race together and take good care of our spines and always say how things are. Let’s not lie to please.

Repeat after me: “I’m not here to please others. I’m here for others”.

Thank you.

2012-07-20We went with the softer explanation because it wasn't clear during the reviews.
17TYPO

The -g flag is not necessary on server settings.

set -sg escape-time 1

should just be

set -s escape-time 1

2012-07-24
22TYPO

remark to #49172 same here for source version 1.6 seems to be OS independent (luckily).

2012-09-23
16TYPO

sidebar(para:2) seems to me that operating system should read
Window Manager or windows system (as OS has been defined as Linux in this scope).

2012-09-23
20TYPO

bind -n became apperantely bind -r @ para 4 in code section
BTW why config/tmux.conf instead of ~/.tmux.conf here?

2012-09-23
65SUGGEST

On page 23 you check for the emptiness of the $TMUX environment variable to determine if .bashrc (or friends) is executed inside tmux or not and set TERM to xterm-256color if that is not the case.

On page 65, you use the value of $TERM to do the same check again.

I believe that this is errorprone and brittle.
E.g. one might recall the value of $TERM incorrectly, as you
did in the text (set to term-256…, checking for screen-256…).
Would it not be preferable that you check for test -z “$TMUX” again on
page 65, or am I missing something in the context.

If that is the case, sorry for the noise.

2012-09-25I think it's ok as is actually.
9TYPO

The word “middle” is printed as “mid- dle” on page 31, “Working with Panes”, of the epub. (It is wrapped in the PDF, which is OK there.)

2012-09-25
10ERROR

On Debian Wheezy (tmux 1.6), panes are closed with “Prefix x” instead of “Prefix X”.

2012-09-23
17TYPO

“shorten” misspelled as “short- en” in the epub. (Wrapped in PDF.)

2012-09-25
22TYPO

It says Prefix X to kill a window but really Prefix x seems to do it (lowercase).

2012-09-23
47ERROR

“we switch to Copy mode and press PREFIX ].” - Maybe it’s just my setup, but I think it should read -
“we switch out of Copy mode and press PREFIX ].”

2012-09-23
60ERROR

The paragraph, just after the first block of code reads “This means “Take window 1 of the The code tag should not be here. session and join it to the current window,” since we didn’t specify a target." I’m guessing “The code tag should not be here.” is intended as and editorial note.

2013-01-30
41OK

To fire up …
$ tmuxinator development

should read

$ tmuxinator start development

2013-01-30Version 0.5.0 supports omitting the start keyword.
60TYPO

Looks like some notes crept into the final text:

“This means “Take window 1 of the The code tag should not be here. session and join it to the current window,” since we didn’t specify a target."

2013-01-30
64TYPO

very minor, but there is a stray period in the section “Moving Windows Between Session” in the text “press the key combination. and then”.

2013-01-30
xiTYPO

• CTRL - R means the same thing, except that you’ll need to use the SHIFT key to produce the capital “R.” I won’t explicitly show the SHIFT key in any of these keystrokes.

Based on the text and previous line I’d expect CTRL-B, not CTRL-R

2013-01-30I see what you're getting at. I've reworded this.
60ERROR

The text contains: “The code tag should not be here.” which is obviously in error - probably some content would make more sense here. Please send me a short notice when this also gets fixed. Thanks :)

2013-01-30
19ERROR

When customizing keys, I found that “bind - split-window -v” did NOT work unless I issued “unbind -” first.
tmux version 1.8 as included with iTerm2

2013-03-29I can't reproduce this behavior with the official tmux version.
60TYPO

Non-sensical sentence in section 6.1:

This means “Take window 1 of the The code tag should not be here. session and join it to the current window,” since we didn’t specify a target.

2013-01-30
34SUGGEST

The text suggests to create the file ~/development (in $HOME) but the snippets from the script are titled config/development. I see that this is part of the URL to obtain the script but for someone with the paper book or a PDF Reader without hyperlinking capability this is confusing.

2013-03-29There's not really a good way to fix this - the code label links to where the code is in the book's source code folders. It's in /config/ because that's topic of the chapter.
34SUGGEST

“Let’s write a simple script using these and
similar commands that creates a new tmux session and creates a window with a couple panes and a couple windows.”

The sentence references “window” twice and probably means two different things (X-Window and tmux-Window). I find this slightly confusing. For users coming from GNU screen there is the additional complication that a Window in screen is something different form a Window in tmux. I think screen windows are more like panes in tmux, but I’m not sure if it is that simple.

I think some clarification about “Window” (maybe in a ‘Joe asks’ box) could be helpful.

2013-01-30
42ERROR

tmux send-keys -t development:1.0 ‘[keys]’ C-m

To be consistent with the convention in the book to use a
pane-base-index of 1 and the description this should be …ment:1.1 ‘[keys]’…

Also breaking the commands with hyphens could be confusing to beginners.

2013-01-30
47TYPO

In fact, we can capture the current buffer to a text file like this:

It should be “current pane” instead of “current buffer”, because the command actually saves the pane (via the buffer) to a file.

2013-01-30
48ERROR

“You’ll be presented with a list that looks like Figure 12, Choosing a buffer of text to insert, on page 49.”

Figure 12 doesn’t show the selection list but the situation after the selection has been made.

2013-01-30
69TYPO

“This means “Take window 1 of the The code tag should not be here. session and join it to the current window,” since we didn’t specify a target."

I don’t think “The code tag should not be here.” should be there. =)

2013-03-19
51ERROR

Escaped quote marks missing from OSX version of system-clipboard-to-tmux-buffer config code (halfway down page). Should read:

bind C-v run “tmux set-buffer \\”$(reattach-to-user-namespace pbpaste)\\“; tmux paste-buffer”

2013-04-08
8SUGGEST

While explaining PREFIX-f, you could add that it not only finds windows with a certain name, but also finds/lists all windows that contain the given word anywhere (in an open text editor, as part of the shell prompt, in a debug output, etc.).

(Unrelated: Maybe you could also mention that tmux gets developed in openbsd, just to give some credit.)

Anyways, thanks for this great book; I really enjoy reading it!

2016-09-26
63ERROR

The book states the default configuration of switch-client bindings are:

bind -r ( switch-client -p
bind -r ) switch-client -n

However, the -r is not part of the default config.

2016-09-26
65TYPO

Typing exit in any Terminal window will close all the Terminal windows attached!

I believe this should read:
Typing exit in any Terminal window will close all of the Terminal windows attached!

2016-09-26
26TYPO

Last Code Snippet cannot be copy/pasted. Paste result is:

set
set
set
set
-g
-g
-g
-g
pane-border-fg green
pane-border-bg black
pane-active-border-fg white
pane-active-border-bg yellow

2016-09-26This is a limitation of the PDF format and your PDF reader. Unfortunately there's not much we can do about that. But you can just get the code from the book's download and copy from there, or click on the filename above the code listing to view it on our web site.
62ERROR

In the paragraph discussing the synchronize-panes command, the sentence “… you can turn it off with set-window-option synchronize-panes on.” should be “… set-window-option synchronize-panes off.”

2016-09-26
20TYPO

Lst paragraph. Text says that the panes in the following example drawing of a window with two panes are stacked horizontally.
It should say “vertically” since it’s a vertical split.

2016-09-26
60ERROR

When I try to use the maximizing and restoring panes shortcuts, the screen just flips completely and I can’t see what I’m typing anymore. This is like that until I type exit and this is killed. The rest of my tmux session is normal then. I use tmux 1.9a. Is their an error in the Up and Down bindings? I copy pasted the rules in my .tmux.conf file and when I press C-a Up or Down. Everything is flipping.

2016-09-26On tmux 1.9, just use Prefix z. The up and down bindings are for an older version.
41SUGGEST

tmuxinator can be used on computers without Ruby installed. In the last sentence on that page, it reads “it does require a Ruby interpreter on your machine though, so it may not be something you’ll set up on every environment where you’d like to use tmux.” However, (at least) the recent version of tmuxinator has the `tmuxinator debug` command, which will output the shell commands that are generated by tmuxinator. This output can then be copied to any machine lacking Ruby and executed in stead of `tmuxinator start`.

2016-09-26
581ERROR

This is the correct url …/script.php?script_id=1349 instead of …/download_script.php?src_id=4568

2016-09-26
1SUGGEST

Tmux can be installed now on windows OS (thought CygWin)

First install the CygWin software and then install the TMUX package from CygWin GUI

2016-09-26Thanks. I've not had much luck. But now that Windows 10 supports tmux in its new Linux Subsystem....
21-22ERROR

The section “Handling the Mouse” needs to be updated. In Tmux 2.1 the mouse options where changed, and it’s now only exist one option[1].

[1] raw.githubusercontent.com/tmux/tmux/master/CHANGES

2016-09-26
867TYPO

Amazon “location” 867 (may be relative to my reader) - there are no PDF page numbers on Kindle version - sorry; Chapter 3, Section 2. In the file scripting/app.conf (both in the book and via the code download URL (medi…com/titles/bhtmux/code/scripting/app.conf) have the 7th line as:

send-keys -t development:1.1 ‘cd ~/work/devproject’ C-m

..if the intention is to have vim cd you need to send a ‘:’ to get into command mode (otherwise you get an error from vim), so it should probably be:

send-keys -t development:1.1 ‘:cd ~/work/devproject’ C-m

…with the colon before cd to get vim in command mode. At least that modification works on my machine taking the stock file from the url above. Maybe the author’s vim is set up to launch in command mode; mine apparently is not.

2016-09-26No, the intention is to move tmux into that folder first.
3848TYPO

In scripting/app.conf, the line
“send-keys -t development:1.1 ‘cd ~/devproject’ C-m ”

sends the cd command to the first pane of the first window… which is vim! It should be “send-keys -t development:1.2 ‘cd ~/devproject’ C-m”, as properly said in the prior page.

2016-09-26

Categories: