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
add comment

2 Answers

up vote 9 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

share|improve this answer
add comment

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
add comment

Your Answer


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.