set max lines in a shell buffer

Summary:

Test Plan:

Reviewers:

CC:

Task ID: #

Blame Rev: