快速切换系统代理
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.DS_Store
Trace (Proxy-helper).alfredworkflow
icon.png
info.plist
proxy.conf
readme.md
trace.sh
workflowHandler.sh

readme.md

Trace (Proxy-helper).alfredworkflow

在 Mac 上切换代理是一件麻烦的事情,然而不幸的是一旦你有了这个需求往往也意味着你需要频繁进行这个操作

于是我造了这个偷懒用的 alfredworkflow

希望有人能用得着

Quickly start

  1. Download

    https://github.com/IvanChou/Trace.alfredworkflow/raw/master/Trace%20(Proxy-helper).alfredworkflow

  2. Setting

    • Doubule click trace in Alfred Workflows Preferences
    • Click Open workflow folder to open Finder
    • Open proxy.conf and modify it like sample
  3. Use

    Call out your alfred, and type trace

  4. Enjoy it!

More feature

When you change your proxy setting via Trace, OSX may ask your password to allow this operation everytime.

To slove this question, you can do something more:

  1. add the following line to /etc/sudoers/

    yourusername ALL=NOPASSWD: /usr/sbin/networksetup 
    # e.g.
    IChou ALL=NOPASSWD: /usr/sbin/networksetup
    

    Remeber the file /etc/sudoers/ must be end with a empty line!!

  2. re-link the scripts of trace

About Trace

It's inspired by Fate. "Trace on!"