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

angular ui router - 10 digest iterations reached in angularjs when using $state.go -

symfony - InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area" -

javascript - Can Piwik report referrer in real time? -