Tmux with native scrollback

Here is how to get colors working and allow native scrollback in terminal.app

file: .tmux.conf

Show sort hostname in tab title of tmux. Really helpful trick.

file: .bashrc

Published by

Shishir Sharma

Shishir is a hacker, software developer and a bachelor of electronics & communication engineering. He is a problem solver, technology enthusiast. He can speak in Java, Python, Perl, PHP, Curl etc; Fluent in C, C++, GNU/Linux. He is moderator at LUG-Jaipur and contributor of wordMint. He loves action movies and Counter Strike.

2 thoughts on “Tmux with native scrollback”

  1. You should append to the `terminal-overrides` setting, instead of overwriting it:

    set -ga terminal-overrides 'xterm*:smcup@:rmcup@'

    See also http://daniel.hahler.de/properly-disable-terminal-capabilities-for-alternate-screen-in-tmux

    Apart from that, I find it better to not have tmux set/overwrite the $TERM, but to massage it in my shell’s config: https://github.com/blueyed/oh-my-zsh/blob/9378846e27c41843dcca644e79160be26a4e0236/zshrc#L266-L274

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>