I'm running Ubuntu 14.04 (Cinnamon Mint 17.1) with Bash. Every time I open a new terminal window, I enter screen to start the screen window manager, but I would like the shell to do this for me.
I believe I need to modify .bashrc instead of .profile, so it starts on every new terminal window, not just on logon. So I've added the following to the end of .bashrc, to replace the shell process:
exec /usr/bin/screen -q
When I start a new terminal window:
- Usually, I get a blank window with a flashing cursor, and the Bash prompt only appears after I press
Ctrl+C. - Sometimes, the terminal window closes immediately, when I press
Ctrl+C, or when I resize the terminal window. - Sometimes, I get a Bash prompt with no
$LS_COLORS(though it's hard to reproduce this, so I'm not entirely sure when or why it happens).
Can anyone explain why this is failing for me, and suggest a solution?
Thanks,
Huw
screenon top ofbasha possibility? I.e. simplyscreen -q, I've always had problems on running commands on top ofgnome-terminaldirectly, I'm pretty sure it has something to do with it. – kos Sep 17 '15 at 09:12Ctrl+C" behaviour, but then I can't close the terminal window withCtrl+D. – Huw Walters Sep 17 '15 at 09:15Must be connected to a terminal., andscreendoes not start at all. – Huw Walters Sep 17 '15 at 09:17echo Hello worldin my.bashrcalso produces output on every new terminal, butscreenstill behaves weirdly. )-: – Huw Walters Sep 17 '15 at 11:51