oh-my-fish / plugin-proxy

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

Could not resolve proxy - with authentication #10

Open iamvvra opened 5 years ago

iamvvra commented 5 years ago

I have setup the proxy as detailed in the document. I have set the variables in the ~/.config/omf/before.init.fish with proxy_user, proxy_host and proxy_auth to configure my proxy and also to authenticate it. However when I toggle to proxy the plugin ask for system root password for read the keychain, but not the password in the terminal. I believe the plugin uses the username password set in the proxy of the network adapter.

When I curl a website, I get the error curl: (5) Could not resolve proxy: <proxy-host:port>

Also, I found that, proxy command failed, through the terminal notifier.

I couldn't fix this issue, can you please help on this.

PS: fisher -v fish, version 3.0.2

omf --version Oh My Fish version 6-31-g18821a5

jhillyerd commented 5 years ago

Try running set -Ux and seeing what values the plugin has set for:

http_proxy HTTP_PROXY
https_proxy HTTPS_PROXY
ftp_proxy FTP_PROXY
all_proxy ALL_PROXY

Those are the environment variables various tools use.

I didn't add the keychain stuff, so I'm not sure how it works exactly.