When SmartGit loads, is there a way to call a script to adjust its environment, similar to how `.bashrc` does it for terminals?
------------------
Specifically, I am facing the follow issue with husky ...
... where it could not find `npx`. I think it's not just a matter of finding the binary (I did try adding a symbolic link), but some script needs to be run first for everything to function correctly. The following is what's in my `.bashrc`:
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
In a regular terminal, the husky command works during commit, but not through SmartGit.
p/s: Usually, I would add that code snippet into the husky script, but for most projects, I am not the maintainer, so it is not possible.
Thanks.