Skip to main content
The command saves the file at ~/ by default. It's confusing at first and seems like the command is unsuccessful.
Source Link

For those looking for a simple answer:

  1. Use prefix + :, then type in capture-pane -S -3000 + Return. (Replace -3000 with however many lines you'd like to save, or with - for all lines.) This copies those lines into a buffer.
  2. Then, to save the buffer to a file, just use prefix + : again, and type in save-buffer filename.txt + return. (by default it'll save the file in ~/)

(By default Prefix is Ctrl+B.)

For those looking for a simple answer:

  1. Use prefix + :, then type in capture-pane -S -3000 + Return. (Replace -3000 with however many lines you'd like to save, or with - for all lines.) This copies those lines into a buffer.
  2. Then, to save the buffer to a file, just use prefix + : again, and type in save-buffer filename.txt + return.

(By default Prefix is Ctrl+B.)

For those looking for a simple answer:

  1. Use prefix + :, then type in capture-pane -S -3000 + Return. (Replace -3000 with however many lines you'd like to save, or with - for all lines.) This copies those lines into a buffer.
  2. Then, to save the buffer to a file, just use prefix + : again, and type in save-buffer filename.txt + return. (by default it'll save the file in ~/)

(By default Prefix is Ctrl+B.)

Bullet points; `-` is for all lines.
Source Link
AdminBee
  • 23.6k
  • 25
  • 55
  • 77

For those looking for a simple answer:

  1. Use prefix + :, then type in capture-pane -S -3000 + returnReturn. (Replace -3000 with however many lines you'd like to save, or with - for all lines.) This copies those lines into a buffer.
  2. Then, to save the buffer to a file, just use prefix + : again, and type in save-buffer filename.txt + return.

(By default prefixPrefix is ctrl + bCtrl+B.)

For those looking for a simple answer:

  1. Use prefix + :, then type in capture-pane -S -3000 + return. (Replace -3000 with however many lines you'd like to save, or with - for all lines.) This copies those lines into a buffer.
  2. Then, to save the buffer to a file, just use prefix + : again, and type in save-buffer filename.txt + return.

(By default prefix is ctrl + b.)

For those looking for a simple answer:

  1. Use prefix + :, then type in capture-pane -S -3000 + Return. (Replace -3000 with however many lines you'd like to save, or with - for all lines.) This copies those lines into a buffer.
  2. Then, to save the buffer to a file, just use prefix + : again, and type in save-buffer filename.txt + return.

(By default Prefix is Ctrl+B.)

For those looking for a simple answer, just use prefix + :, then type in capture-pane -S -3000 + return (Replace 3000 with however many lines you'd like to save.) This copies those lines into a buffer.:

Then, to save the buffer to a file, just use prefix + : again, and type in save-buffer filename.txt + return, replacing filename with whatever you'd like.

  1. Use prefix + :, then type in capture-pane -S -3000 + return. (Replace -3000 with however many lines you'd like to save, or with - for all lines.) This copies those lines into a buffer.
  2. Then, to save the buffer to a file, just use prefix + : again, and type in save-buffer filename.txt + return.

(By default prefix is ctrl + b.)

For those looking for a simple answer, just use prefix + :, then type in capture-pane -S -3000 + return (Replace 3000 with however many lines you'd like to save.) This copies those lines into a buffer.

Then, to save the buffer to a file, just use prefix + : again, and type in save-buffer filename.txt + return, replacing filename with whatever you'd like.

(By default prefix is ctrl + b.)

For those looking for a simple answer:

  1. Use prefix + :, then type in capture-pane -S -3000 + return. (Replace -3000 with however many lines you'd like to save, or with - for all lines.) This copies those lines into a buffer.
  2. Then, to save the buffer to a file, just use prefix + : again, and type in save-buffer filename.txt + return.

(By default prefix is ctrl + b.)

Removed double capture-pane
Source Link
Sauce McBoss
  • 6.9k
  • 2
  • 15
  • 7
Loading
Source Link
Sauce McBoss
  • 6.9k
  • 2
  • 15
  • 7
Loading