Besides covering basic differentiations, this article could serve to improve the quality of the Wiki by avoiding repetition. How many articles say: "edit in ~/.bashrc, or zhrc (if you're using zsh) -- alternatively, edit /etc/profile.bash for system-wide changes" or something to that effect? And even though it sounds counterintuitive, expanding this article makes the Wiki better for advanced users as well, since they won't be presented with the same old information they're accustomed to skip.
We could have a basic run down of common file locations and what they mean, instead of explaining them in every article. Editors can just say "add the following to the shell's configuration" and readers would then decide whether they want it system-wide or not, etc.
Just like article:ABS is referred to in every page that involves compiling, this page could serve the same kind of utility.
First of all, it's very confusing that such detailed description appears in such generic topic. Why wouldn't just mention the two configutration files like:
/etc/bash.bashrc: A system-wide setting for bash;
~/.bashrc: A personal shell setting for bas.
And then give some reference to Bash at the end of this topic? It would also be more compatible to the section title "System-wide versus user-specific configuration", instead of distinguishing login/interactive shells.
I have one more question about this paragraph, though it seems corresponds to Bash more than this article. According to this stackoverflow thread, a bash environment spawn by terminal simulator like gnome-terminal will shouldn't be a login shell, since it has nothing to do with "login" in to this system. However, after some experiments, I found that a new page of gnome-terminal sources both configuration files. That is to say, either the paragraph
/etc/bash.bashrc: System-wide settings; sourced only by a login shell
~/.bashrc: Personal shell settings; sourced only by an interactive shell
or the stackoverflow thread is wrong. Which is the correct one?
Thanks for any response.
BTW, I am new to contribute to ArchWiki. If I do anything wrong or not good, please let me know. Many thanks!
- The line on
/etc/bash.bashrcis completely wrong; the correct behaviour is described in Bash#Configuration files. I'm just going to remove it since it's a duplicate anyway. -- Alad (talk) 12:17, 20 October 2015 (UTC)
It may be a good idea to add a mention on optional dependencies in Help:Reading#Installation of packages, as articles implicitly assume users are aware of them, and link to PKGBUILD#optdepends. -- Alad (talk) 11:54, 18 November 2015 (UTC)