2

I have a shell script project where I want to load the .*rc from the project folder.

In zsh I can achieve this by ZDOTDIR=$PWD zsh which will load the .zshrc from the current folder.

How can I do the same in Bash?

2

Launch bash with the --rcfile option

bash --rcfile ./project/bashrc

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.