diff --git a/README.md b/README.md index 9434be6..8fca2db 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ chsrc set ruby rubychina # 使用 RubyChina 作为镜像站 ```bash chsrc set ruby 或 set gem -chsrc set python 或 set pip +chsrc set python 或 set pip / pdm # 同时换pip和pdm chsrc set node 或 set npm / nodejs / yarn / pnpm # 同时换3个 chsrc set perl 或 set cpan chsrc set php 或 set composer diff --git a/src/chsrc.c b/src/chsrc.c index 34135a0..60dc354 100644 --- a/src/chsrc.c +++ b/src/chsrc.c @@ -136,7 +136,9 @@ pl_python_getsrc (char *option) } /** - * Python换源,参考:https://mirrors.tuna.tsinghua.edu.cn/help/pypi/ + * Python换源,参考: + * 1. https://mirrors.tuna.tsinghua.edu.cn/help/pypi/ + * 2. https://github.com/RubyMetric/chsrc/issues/19 * * 经测试,Windows上调用换源命令,会写入 C:\Users\RubyMetric\AppData\Roaming\pip\pip.ini */ @@ -1964,7 +1966,7 @@ TargetInfo #define t(a) (const char*)(a) static const char *pl_ruby [] = {"gem", "ruby", "rubygem", "rb", "rubygems",NULL, t(&pl_ruby_target)}, -*pl_python[] = {"pip", "python", "pypi", "py", NULL, t(&pl_python_target)}, +*pl_python[] = {"pip", "python", "pypi", "py", "pdm", NULL, t(&pl_python_target)}, *pl_nodejs[] = {"npm", "node", "nodejs", "js", "yarn", "pnpm", NULL, t(&pl_nodejs_target)}, *pl_perl [] = {"perl", "cpan", NULL, t(&pl_perl_target)}, *pl_php [] = {"php", "composer", NULL, t(&pl_php_target)},