Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting environment variables for SmartGit to use

Tags:

smartgit

I have a pre-commit hook that runs some tests. This used to work great until the tests started to rely on environment variables. Is there a way to set those environment variables in SmartGit so the pre-commit tests can complete?

like image 382
Guy Avatar asked Oct 28 '25 08:10

Guy


1 Answers

Two options:

1) Add your variables to /etc/profile or /etc/launchd.conf and SmartGit will pick them up.

2) Simply launch SmartGit from the shell instead of the desktop environment and your variables from files such as ~/.bashrc will be present. (That's what I'm doing, using a brief alias for convenience.)

like image 165
Janosch Avatar answered Oct 30 '25 14:10

Janosch



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!