Timeline for Is there a ".bashrc" equivalent file read by all shells?
Current License: CC BY-SA 2.5
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 16, 2017 at 20:33 | comment | added | DouglasDD |
For amusement &&/|| historical value, I present: The BNR Standard Login -- which used ~/.bnrrc to add required shell configs for various tools to both sh and csh.
|
|
| May 31, 2017 at 3:51 | comment | added | Benjamin R |
@fschmitt You can also source $HOME/.profile from inside your Zsh .zshrc, too. I tend to put all my portable shell things in .profile and then I can share it around any environment I might hop between.
|
|
| Nov 26, 2013 at 20:07 | comment | added | Mikel |
For this way to work, users need to ensure that each shell is a login shell. For example, in Gnome Terminal, go to Profile -> Title and Command, and enable Run command as a login shell. You also need to remove ~/.bash_profile, or make it source ~/.profile.
|
|
| Oct 14, 2010 at 3:27 | comment | added | msw | fschmitt: thanks for the correction; fixed. Maciej Piechotka: I have no doubt that's true; however it is also possible (though complicated) to make *rc scripts that import particular other rc scripts based on the shell they are running under. | |
| Oct 14, 2010 at 3:23 | history | edited | msw | CC BY-SA 2.5 |
deleted 4 characters in body
|
| Oct 13, 2010 at 23:01 | comment | added | Maja Piechotka | tcsh is still popular in some enviroments. | |
| Oct 13, 2010 at 15:48 | comment | added | fschmitt | Zsh by default does not read .profile. That's why I deleted my previous answer stating this. Zsh only reads .profile when it is invoked by a symbolic link named sh. | |
| Oct 13, 2010 at 14:47 | vote | accept | Stefan | ||
| Oct 13, 2010 at 13:43 | history | answered | msw | CC BY-SA 2.5 |