Source shell configs local to a directory.
The main script should be POSIX compliant, so if you hook it up to a shell other than zsh, feel free to contribute :)
Add this line
git clone https://github.com/414owen/local-shellrc.git
echo ". $PWD/local-shellrc/source-local-shellrc.zsh" >> ~/.zshrc
Your shell will load the closest .local.sh
file (and .zshrc
file in zsh) that's a direct child of a parent directory of $PWD
.