加速走代理

  • linux flatpak 安装的 obsidian : /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=obsidian.sh --file-forwarding md.obsidian.Obsidian --env=all_proxy="socks5://127.0.0.1:10808" @@u %U @@
  • bash:
export http_proxy="http://127.0.0.1:10809"
export https_proxy="http://127.0.0.1:10809"
set http_proxy=http://127.0.0.1:10809
  • chrome快捷方式
chrome --proxy-server="socks://127.0.0.1:10808"
  • pip
pip config set global.http-proxy http://<proxy_server>:<port> 
pip config set global.https-proxy http://<proxy_server>:<port>

win 位置:C:\Users\<user>\AppData\Roaming\pip

  • powershell
$env:HTTP_PROXY="http://127.0.0.1:10809"
$env:HTTPS_PROXY="http://127.0.0.1:10809"
  • cmd
set http_proxy=http://127.0.0.1:10809
  • winget
# 管理员权限启用 proxy
winget settings --enable ProxyCommandLineOptions
winget settings set DefaultProxy http://127.0.0.1:10809
winget settings reset DefaultProxy

# 安装 powershell
winget install --id Microsoft.Powershell --source winget --proxy http://127.0.0.1:10809

来自:How can I persist this option in a config file, instead of typing --proxy http://127.0.0.1:7890 every time?

posted @   cliter  阅读(123)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
点击右上角即可分享
微信分享提示