MAC bash proxy configuration behind a SS server
export http_proxy=`scutil —proxy | awk ‘\
/HTTPEnable/ { enable = $3; } \
/HTTPProxy/ { server = $3; } \
/HTTPPort/ { port = $3; } \
END { if (enabled == “1”) { print “http://“ server “:” port; }}’`
export https_proxy=`scutil —proxy | awk ‘\
/HTTPSEnable/ { enable = $3; } \
/HTTPSProxy/ { server = $3; } \
/HTTPSPort/ { port = $3; } \
END { if (enabled == “1”) { print “https://“ server “:” port; }}’`
export HTTP_PROXY=“${http_proxy}”
export HTTPS_PROXY=“${https_proxy}"