Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

In your .tmux.conf file you can set the window history with something like:

set -g history-limit 4096

Is there a way to set an unlimited history for each window?

share|improve this question

2 Answers 2

Do NOT set it to something like:

set -g history-limit 999999999

This will pre-allocate that many lines (and hence memory) for all windows, which is going to cripple your machine the more history is stored over time.

Set it to something large, by all means but not THIS large.

share|improve this answer
    
Thanks, this is good to know. I guess you just have to balance the size with comfort that everything you dump will be there. –  kenny Dec 18 '13 at 21:18
    
Looks like the time is comming where we need to do actual benchmarks :-) –  Volker Siegel Jun 20 at 15:00
2  
Ha, I did a comparison, starting tmux with either of the history-limit values; Memory is the same after start, so tmux does not preallocate the scrollback buffer. (Of course, that does not solve the practical problem) –  Volker Siegel Jun 20 at 16:07
up vote 8 down vote accepted

From what I can tell, you can only do this in a "practical" fashion, by setting the history to an absurdly large number. e.g.:

set -g history-limit 999999999

UPDATE: see the other answer as to why you don't want to use a number this high. Something more reasonable (less 9's) would be best.

share|improve this answer
    
See warning in the answer of @ThomasAdam. –  Volker Siegel Jun 19 at 10:32
    
See my comment on his answer. :) –  kenny Jun 20 at 13:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.