{"id":24960766,"url":"https://github.com/xooooooooox/zsh-proxy","last_synced_at":"2025-03-28T21:44:33.565Z","repository":{"id":274280658,"uuid":"922444743","full_name":"xooooooooox/zsh-proxy","owner":"xooooooooox","description":"About An oh-my-zsh plugin that configures proxy environment variables based on macOS's system preferences automatically","archived":false,"fork":false,"pushed_at":"2025-01-27T08:35:55.000Z","size":13,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-03T08:40:57.781Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xooooooooox.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-26T08:16:28.000Z","updated_at":"2025-01-27T08:35:59.000Z","dependencies_parsed_at":"2025-01-26T09:32:52.104Z","dependency_job_id":null,"html_url":"https://github.com/xooooooooox/zsh-proxy","commit_stats":null,"previous_names":["xooooooooox/zsh-proxy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xooooooooox%2Fzsh-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xooooooooox%2Fzsh-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xooooooooox%2Fzsh-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xooooooooox%2Fzsh-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xooooooooox","download_url":"https://codeload.github.com/xooooooooox/zsh-proxy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246106666,"owners_count":20724400,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-03T08:31:19.773Z","updated_at":"2025-03-28T21:44:33.515Z","avatar_url":"https://github.com/xooooooooox.png","language":"Shell","funding_links":[],"categories":["Plugins","Recently Updated"],"sub_categories":["ZSH on Windows","[Feb 10, 2025](/content/2025/02/10/README.md)"],"readme":"# zsh-proxy plugin\n\nA zsh plugin for managing shell environment proxy settings.\n\n## Features\n\n- Easy proxy configuration through interactive prompts\n- Support for both HTTP and SOCKS5 proxies\n- Automatic proxy activation on shell startup (optional)\n- Automatic proxy availability check when auto-start is enabled\n- Environment variable management for system-wide proxy settings\n- No-proxy list for excluding local addresses\n\n## Installation\n\n### Using [Oh My Zsh](https://github.com/ohmyzsh/ohmyzsh)\n\n1. Clone this repository into `$ZSH_CUSTOM/plugins` (by default `~/.oh-my-zsh/custom/plugins`)\n\n```zsh\ngit clone https://github.com/xooooooooox/zsh-proxy ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-proxy\n```\n\n2. Add the plugin to the list of plugins in your `.zshrc` file:\n\n```zsh\nplugins=(... zsh-proxy)\n```\n\n### Using [zinit](https://github.com/zdharma-continuum/zinit)\n\nAdd one of the following to your `.zshrc` file:\n\nFrom [GitCode](https://gitcode.com/xooooooooox/zsh-proxy):\n\n```zsh\nzinit snippet 'https://raw.gitcode.com/xooooooooox/zsh-proxy/raw/main/zsh-proxy.plugin.zsh'\n```\n\nFrom [GitHub](https://github.com/xooooooooox/zsh-proxy):\n\n```zsh\nzinit light xooooooooox/zsh-proxy\n```\n\n### Using [Antigen](https://github.com/zsh-users/antigen)\n\nAdd the following to your `.zshrc` file:\n\n```zsh\nantigen bundle xooooooooox/zsh-proxy\n```\n\n### Using [prezto](https://github.com/sorin-ionescu/prezto)\n\n1. Clone this repository into your Prezto modules directory:\n\n```zsh\ngit clone https://github.com/xooooooooox/zsh-proxy ${ZDOTDIR:-~}/.zprezto/contrib/zsh-proxy\n```\n\n2. Add the plugin to your `.zpreztorc` file:\n\n```zsh\nzstyle ':prezto:load' pmodule \\\n  ... \\\n  'zsh-proxy' \\\n  ...\n```\n\n### Manual Installation\n\n1. Clone this repository somewhere on your machine:\n\n```zsh\ngit clone https://github.com/xooooooooox/zsh-proxy ~/.zsh/zsh-proxy\n```\n\n2. Add the following to your `.zshrc` file:\n\n```zsh\nsource ~/.zsh/zsh-proxy/zsh-proxy.plugin.zsh\n```\n\n## Setup\n\n1. Initialize the plugin configuration:\n\n```zsh\ninit_zsh_proxy\n```\n\n2. Configure proxy settings:\n\n```zsh\nconfig_zsh_proxy\n```\n\nThis will prompt you to enter:\n\n- SOCKS5 proxy address (default: 127.0.0.1:6153)\n- HTTP proxy address (default: 127.0.0.1:6152)\n- No-proxy domains (default: localhost,127.0.0.1)\n\n## Usage\n\n### Commands\n\n| Command   | Description                    |\n|-----------|--------------------------------|\n| `proxy`   | Enable proxy settings          |\n| `noproxy` | Disable proxy settings         |\n| `lsproxy` | Display current proxy settings |\n\n### Environment Variables\n\nThe plugin manages the following environment variables:\n\n- `http_proxy` / `HTTP_PROXY`\n- `https_proxy` / `HTTPS_PROXY`\n- `all_proxy` / `ALL_PROXY`\n- `no_proxy` / `NO_PROXY`\n\n### Auto Proxy\n\nTo enable automatic proxy activation on shell startup, edit `${XDG_CONFIG_HOME-${HOME}}/zsh-proxy/auto`:\n\n```zsh\n# Disable auto proxy (default)\necho \"0\" \u003e\"${XDG_CONFIG_HOME-${HOME}}/zsh-proxy/auto\"\n\n# Enable auto proxy\necho \"1\" \u003e\"${XDG_CONFIG_HOME-${HOME}}/zsh-proxy/auto\"\n\n```\n\n## Configuration Files\n\nAll configuration files are stored in `${XDG_CONFIG_HOME-${HOME}}/zsh-proxy/`:\n\n- `auto`: Controls automatic proxy activation\n- `http`: HTTP proxy URL\n- `socks5`: SOCKS5 proxy URL\n- `no_proxy`: Comma-separated list of domains to bypass proxy\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxooooooooox%2Fzsh-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxooooooooox%2Fzsh-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxooooooooox%2Fzsh-proxy/lists"}