문제

I'm tying to accomplish a very simple task. start my shell with screen. In my .profile file. I have this

if [ -f /bin/bash ];
then
        echo "Switch to bash."
        exec bash

switches to bash.

but if I just include "screen" inside my .bashrc, I get in an infinite loop of screen prompt, because bash runs screen recursively.

If I include. "exec bash -c screen" terminal never gets going?

도움이 되었습니까?

해결책

Consider not using the profile script when you run screen:

exec screen bash --noprofile
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top