oh-my-fish / plugin-proxy

Proxy settings plugin for Oh My Fish
MIT License
39 stars 17 forks source link

Warnings appearing on subprocesses #7

Open MakoNakor opened 7 years ago

MakoNakor commented 7 years ago

https://github.com/oh-my-fish/plugin-proxy/blob/5e198ef3a8212c3a8cdb840a05e0c75e70634575/functions/__proxy.set.fish#L12 Adding a -q argument to the set command will prevent the warnings.

 ~> fish                                                                                                                         12:24
set: Warning: universal scope selected, but a global variable 'http_proxy' exists.
set: Warning: universal scope selected, but a global variable 'HTTP_PROXY' exists.
set: Warning: universal scope selected, but a global variable 'https_proxy' exists.
set: Warning: universal scope selected, but a global variable 'HTTPS_PROXY' exists.
set: Warning: universal scope selected, but a global variable 'ftp_proxy' exists.
set: Warning: universal scope selected, but a global variable 'FTP_PROXY' exists.
set: Warning: universal scope selected, but a global variable 'all_proxy' exists.
set: Warning: universal scope selected, but a global variable 'ALL_PROXY' exists.
Darwin GNWLYNA2087625 17.0.0 x86_64
12:24  up 2 days,  3:22, 3 users, load averages: 1.83 1.72 1.80
 ~>