JackbyDev to Programmer [email protected]English • edit-21 month agoWhich one???programming.devimagemessage-square54fedilinkarrow-up1267arrow-down14file-text
arrow-up1263arrow-down1imageWhich one???programming.devJackbyDev to Programmer [email protected]English • edit-21 month agomessage-square54fedilinkfile-text
Fuck it, .zshrc it is. Image transcription: Top text: I STILL DON’T KNOW WHAT SHOULD GO IN .*RC VERSUS .*PROFILE Bottom text: AND AT THIS POINT I’M AFRAID TO ASK
minus-square@dohpaz42linkEnglish10•1 month agoSo, assuming bash is your shell, the ~/.bash_profile is executed for login shells for the user logging in. ~/.bashrc is the initialization script for when starting a bash session (for the current user). In my experience, the ~/.bashrc will also execute ~/.bash_profile if it exists. So you can use either.
minus-squareJackbyDevOPlinkfedilinkEnglish1•1 month agoWhat would I want in login environments I wouldn’t also want in interactive ones though?
So, assuming bash is your shell, the ~/.bash_profile is executed for login shells for the user logging in.
~/.bashrc is the initialization script for when starting a bash session (for the current user).
In my experience, the ~/.bashrc will also execute ~/.bash_profile if it exists. So you can use either.
What would I want in login environments I wouldn’t also want in interactive ones though?