News for hackers. Stuff that matters.
Re:Ask HN: Which is better tmux or screen? by archmonk on Friday April 14, 2017 @03:49PM (#14116732)
Interesting I didn't know that in screen you could isolate bash history per context.
Re:Ask HN: Which is better tmux or screen? by dllthomas on Friday April 14, 2017 @05:08PM (#14117390)
It's not screen doing the work.

Screen is just a process that spawns other processes, and like always those inherit environment variables. The script I have that starts screen defines a variable called "SESSION" beforehand, and that's used in my bashrc to set HISTFILE (and other things). Screen is just how I organize it.