User talk:Bachsau

From ArchWiki
Latest comment: 14 January 2022 by Bachsau in topic About .profile
Welcome to my discussion page!

Please use the "Add topic" tab when you start a new topic, and don't forget to add your signature (--~~~~). Questions asked on this page will be answered here. Answers to my questions on other user's pages are expected there. Please indent your answers with a colon.

Should you miss previous discussions, please have a look at the history. Once in a while I remove finished topics, and there's no sense in having an additional archive.

About .profile

I'm not sure why, but .profile is not read at all on my system. I'm using Gnome on Wayland and after restarting (logged out initially, even restarted to be 100% sure) it still didn't pick up the ENV variables in the GNOME Terminal. For sure I'm not the only user experiencing this: darkbasic ( (talk) 11:59, 14 January 2022 (UTC)Reply

Have you checked if there's a ".bash_profile" in your home directory? If such file exists, `bash` will use that instead. For some reason Arch likes to put that in a new users home directory to include ".bashrc" even in logins shells, while most other distros do that from ".profile" in an `if` clause. I recommend deleting ".bash_profile" and append the following to your ".profile" instead:
# Include local bash config
if [ -n "$BASH_VERSION" -a -f "$HOME/.bashrc" ]; then
	. "$HOME/.bashrc"

--Bachsau (talk) 12:17, 14 January 2022 (UTC)Reply