Sometimes I'm scrolling up a log file and need to switch sessions, so open the session menu with prefix-s. This causes tmux to forget the window's scroll position, so that when I return it's at the bottom of the log file.

Is there any way to keep scroll position when switching session?


use less to read your log file ? Or use screen ? I think that could be 2 solutions.

  • I can't use less as these are usually live logs using tail -f. As for screen, this is a bit annoying, but not annoying enough to leave tmux! – mahemoff Dec 6 '13 at 14:34
  • :D screen is so powerfull, but I definetly understand your problem using it :D well good luck with that. – Kiwy Dec 6 '13 at 14:36
  • I'm sure screen's fine too. It's more that I never got really into it and Tmux seems to be a good choice for the future. – mahemoff Dec 9 '13 at 19:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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