Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • Thanks for the answer… But my version of tmux doesn't accept -S to capture-pane (it appears to be 1.3-2, although that's from dpkg, as I can't figure out how to get tmux to show me a version number…) Commented Dec 12, 2011 at 5:40
  • 1
    You probably are running tmux 1.3; you can probably use tmux server-info | head -1 to see your version. tmux -V works in tmux* 1.4 and later. Commented Dec 12, 2011 at 8:03
  • 1
    And if you are already in your tmux window and don't want to restart just do a [PrefixKey] : to get to the tmux command line, and then paste the whole line, then you just do a [Prefix] P it is capital P and you are good to go. Commented Dec 17, 2013 at 21:43
  • 1
    Add -e to capture-pane (i.e., capture-pane -e) to include colors in Tmux 1.8 and up. Commented May 25, 2017 at 23:00
  • 2
    Is it possible to have the file name of the tmux buffer file generated automatically rather than prompted for? So everything you run the shortcut it would save to another file, for example with the current time in the filename. Commented Sep 16, 2017 at 12:44