proxy - execute bash on Network Location profile change -


i have macbook use work both @ office , @ home. due enterprise's policies, have navigate through proxy. i created 2 newtwork profiles (home, office) in set proxy , credentials have use.

however, there several applications have manually edit configuration in order have them work proxy (git, npm, , bunch of others). i created 2 bash files set/unset config key @ convenience.

question is: can "listen" event such network profile change, in order run appropriate bash script, depending on selected location?

maybe automator can help?


Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -