加速走代理

  • 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 @ 2023-07-17 17:57  cliter  阅读(85)  评论(0编辑  收藏  举报