12

When I want to scroll back, i.e. with my mouse (or with PageUp) I can only go up about 43 pages (about 2000 lines). Can I increase that?

I have my terminal preference -> "Scrollback Lines" set to 1000000
I also have my bashrc set with

HISTSIZE=100000
HISTFILESIZE=200000

but these settings aren't helping.

You see how far in the terminal top right, i.e.

enter image description here

and 1900-2000 seems about the max at which point older content is lost.

Michael Durrant
  • 41,213
  • 69
  • 165
  • 232

2 Answers2

16

Putting this in my .tmux.conf file was the trick:

set -g history-limit 20000
Michael Durrant
  • 41,213
  • 69
  • 165
  • 232
  • Ah ha! Yep, `set` is an alias for `set-option`. Here's a related question that I just found: http://stackoverflow.com/questions/18760281/how-to-increase-scrollback-buffer-size-in-tmux – cpugeniusmv Apr 07 '14 at 22:37
  • yeah. set-option actually didn't work for me – Michael Durrant Apr 08 '14 at 00:51
  • Well, the critical bit you added was `-g`. I personally am not sure why that is important, but the linked question might have more information. – cpugeniusmv Apr 08 '14 at 03:38
8

For tmux you can alter its scrollback buffer with

set-option history-limit 10000

The default is 2000.

You can put this directive in your ~/.tmux.conf or at the tmux command prompt (prefix + :).

It looks like iTerm is integrated with tmux. See: https://gitlab.com/gnachman/iterm2/wikis/TmuxIntegration

Bill Lynch
  • 290
  • 2
  • 5
cpugeniusmv
  • 2,627
  • 17
  • 25