On 12/12/24 14:02, Tim via users wrote:
On Thu, 2024-12-12 at 09:27 +1100, Stephen Morris wrote:
Just relative to this, with konsole, which is a bash shell
apparently, are you saying that when you create a new tab that
.bashrc is run in the new tab, but .bash_profile is not and is only
run at the initial console startup?
You can test this for yourself.  Put something extra in it.  Start up a
new console, see if it affects the new console.

e.g. stick into one of them an

  alias grr='echo grr'

And something different into the other one.  You'll either get a
command not found error, or it'll growl back at you.

I can see that each new shell window is affected by the modified
~/.bashrc but not by the modified ~/.bash_profile.  I have to start a
new logon before it the ~/.bash_profile has an effect.

NB:  I'm doing this on Mate, but the principle will be similar with
other consoles.  Of course there could be some that do things their own
way.

I have added a PS1 setting into .bashrc, which gets set in every new tab opened in console, but I don't have anything in .bash_profile as I've never used it, I was just querying how it worked.

regards,
Steve


Attachment: OpenPGP_0x1EBE7C07B0F7242C.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

-- 
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to