[Qt-creator] 'Open Terminal Here' and login shell on Linux

Uwe Rathmann Uwe.Rathmann at tigertal.de
Wed Dec 9 18:15:08 CET 2015


On Wed, 09 Dec 2015 12:00:55 +0100, Andrzej Telszewski wrote:

> 1. Why do you say .bashrc is better than .profile?

There is no good or bad - it is simply, that there are rules, when which 
file is read. The basic idea is, that .profile is read once, when you 
login, while .bashrc is read, each time you open a bash ( it is similar 
for other shells ).

When opening a terminal from the creator it is pretty clear, that you 
don't login ( you have been before starting the creator ) and all the 
settings from .profile should already be already available ( environment 
variables are inherited to child processes ).

So to me it sound more, that you want to initialize your bash in this new 
terminal and this would be what .bashrc is made for.

ciao,
Uwe







More information about the Qt-creator mailing list