Date: Sun, 10 Dec 2023 18:59:22 +0300 From: =?UTF-8?B?T8SfdXo=?= <oguzismailuy...@gmail.com> Message-ID: <cah7i3lqkffm_fcbi7jhrcnrk9pqcbj2fgjf8oqzb-f84koz...@mail.gmail.com>
| There doesn't have to be a standard way; I'd set it in ~/.profile, you'd | set it wherever is convenient on your setup. The point is that the people who want this don't want to have a ~/.profile (or generally almost *any* "." files in $HOME). So what you have as ~/.profile would instead be ~/.config/bash/profile (or something similar). I've been using a DOTFILE env var for years for this purpose, and my ~/.bashrc file (for example) is a one-liner which contains: test -r "${DOTFILE}/bash/rc" && . "${DOTFILE}/bash/rc" (approximately). It doesn't serve the purpose of eliminating the . files from $HOME, but it does make it easier to find all the bash related config files and more easily grep them to find which one contains something stupid. It also makes it easier to move the entire config from one system to another, without also accidentally moving piles of crap in other ~/.* files that random other applications decided that they just *must* have for their private storage. kre