With MTMR you can use the shellScriptTitledButton in the JSON config file to run a specific command from the mac touch-bar. Disclaimer: I'm not affiliated with the bitbar author.Īnother GUI solution specifically for touch-bar users: Bitbar is an open-source app that allows putting the output of any command to the menu bar (as well as launch any command via a bash/python/ruby/node/go script). The plugin also supports http and PAC proxies. Here is a bitbar plugin which wraps the commands above and makes them available as dropdown options in the macos menu bar. the first command only needs to be run once, and then you can just activate/deactivate the proxy as needed. You can later turn it off with networksetup -setsocksfirewallproxystate wi-fi offĪnd then back on with networksetup -setsocksfirewallproxystate wi-fi on networksetup -setsocksfirewallproxy wi-fi localhost 1080 Given that you configured the proxy server with e.g. the type generated with ssh -D, shadowsocks, v2ray, etc). ] Īlternatively, if you just need to set the proxy for something like wget, or curl, then you can use the fairly universal 'http_proxy' and 'ftp_proxy' env variables.Įxpanding on swisscheese's answer for the specific case of the SOCKS5 proxy (i.e. You will find many options for proxy settings in there: There is a manpage for it - networksetup(8) man networksetup Substitute in the actual user’s username for username, the actual user’s old password for oldpassword and the actual user’s new password for newpassword. You can use the commandline tool 'networksetup' sudo security set-keychain-password -o oldpassword -p newpassword /Users/ username /Library/Keychains/login.keychain. EDIT: I am assuming you actually means Mac OS X, and not Mac OS.
0 Comments
Leave a Reply. |