EDIT: Saya berasumsi Anda benar-benar berarti Mac OS X, dan bukan Mac OS ..
Anda dapat menggunakan alat commandline 'networksetup'
Ada manual untuk itu - networksetup (8)
man networksetup
Anda akan menemukan banyak opsi untuk pengaturan proxy di sana:
[-setftpproxy networkservice domain portnumber authenticated username password]
[-setftpproxystate networkservice on | off] [-getwebproxy networkservice]
[-setwebproxy networkservice domain portnumber authenticated username password]
[-setwebproxystate networkservice on | off] [-getsecurewebproxy networkservice]
[-setsecurewebproxy networkservice domain portnumber authenticated username password]
[-setsecurewebproxystate networkservice on | off] [-getstreamingproxy networkservice]
[-setstreamingproxy networkservice domain portnumber authenticated username password]
[-setstreamingproxystate networkservice on | off] [-getgopherproxy networkservice]
[-setgopherproxy networkservice domain portnumber authenticated username password]
[-setgopherproxystate networkservice on | off] [-getsocksfirewallproxy networkservice]
[-setsocksfirewallproxy networkservice domain portnumber authenticated username password]
[-setsocksfirewallproxystate networkservice on | off] [-getproxybypassdomains networkservice]
[-setproxybypassdomains networkservice domain1 [domain2] [...]] [-getpassiveftp networkservice]
Atau, jika Anda hanya perlu mengatur proxy untuk sesuatu seperti wget, atau curl, maka Anda dapat menggunakan variabel env 'http_proxy' dan 'ftp_proxy' yang cukup universal.
Misalnya dalam bash:
export http_proxy=http://my.proxy.com:1234
Di mana '1234' adalah nomor port.
Bersulang
sc.
networksetup
hanya apa yang saya inginkan.