{"version":"1.0","type":"rich","title":"always load screen when session starts","description":"This example demonstrates a shell-script configuration that ensures a persistent terminal session automatically loads whenever a user starts a new login shell. It shows a conditional check on the `$TERM` environment variable to detect whether the session is already running inside GNU Screen, a terminal multiplexer. If not, the script invokes the `screen` command with the `-xRR` flags, which reattaches to an existing session or creates a new one while detaching other connections. The code resides in the user’s `.bashrc` file, relying on standard Bash conditional logic and the Screen application’s command-line interface.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-2041218?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}