Update README

This commit is contained in:
Aoran Zeng 2024-09-10 19:23:55 +08:00
parent b14b0578f1
commit e30d9026bc
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
2 changed files with 14 additions and 10 deletions

View File

@ -31,8 +31,7 @@
<br> <br>
> [!NOTE] 想通过 `flatpak`,`snap`,`pacman`,`apt`,`dnf` 等系统包管理工具来安装和更新`chsrc`?若您可提供维护,请访问 [issue#16 on GitHub](https://github.com/RubyMetric/chsrc/issues/16)
> 想通过 `flatpak`,`snap`,`pacman`,`apt`,`dnf` 等系统包管理工具来安装和更新`chsrc`?若您可提供维护,请访问 [issue#16 on GitHub](https://github.com/RubyMetric/chsrc/issues/16)
- [x] `Homebrew` - [x] `Homebrew`
- [x] `Scoop` - [x] `Scoop`
@ -89,9 +88,9 @@ curl -L https://gitee.com/RubyMetric/chsrc/releases/download/pre/chsrc-x86-windo
```bash ```bash
# AUR # AUR
yay -S chsrc-bin # Binary from GitHub Release $ yay -S chsrc-bin # Binary from GitHub Release
yay -S chsrc # Build from GitHub Release $ yay -S chsrc # Build from GitHub Release
yay -S chsrc-git # Build from the latest main branch (stable) $ yay -S chsrc-git # Build from the latest main branch (stable)
``` ```
- 手动下载二进制文件安装 - 手动下载二进制文件安装
@ -136,8 +135,8 @@ curl -L https://gitee.com/RubyMetric/chsrc/releases/download/pre/chsrc-x64-macos
<summary>BSD</summary> <summary>BSD</summary>
```bash ```bash
git clone https://gitee.com/RubyMetric/chsrc.git; cd chsrc $ git clone https://gitee.com/RubyMetric/chsrc.git; cd chsrc
clang -Iinclude src/chsrc.c -o chsrc $ clang -Iinclude src/chsrc-main.c -o chsrc
``` ```
</details> </details>
@ -145,7 +144,7 @@ clang -Iinclude src/chsrc.c -o chsrc
<summary>其他平台</summary> <summary>其他平台</summary>
```bash ```bash
git clone https://gitee.com/RubyMetric/chsrc.git; cd chsrc; make $ git clone https://gitee.com/RubyMetric/chsrc.git; cd chsrc; gmake
``` ```
</details> </details>
@ -211,7 +210,12 @@ chsrc set -local pdm
```bash ```bash
chsrc set ruby 或 gem chsrc set ruby 或 gem
chsrc set python 或 pip / poetry / pdm # 同时换pip、poetry 和 pdm 这3个 chsrc set python 或 pip / poetry / pdm # 同时换pip、poetry 和 pdm 这3个
chsrc set node 或 npm / nodejs / yarn / pnpm # 同时换npm, yarn 和 pnpm 这3个
chsrc set node|nodejs # 可同时换 npm, yarn 和 pnpm 3个也可以3个独立换源
chsrc set npm
chsrc set yarn
chsrc set pnpm
chsrc set perl 或 cpan chsrc set perl 或 cpan
chsrc set php 或 composer chsrc set php 或 composer
chsrc set lua 或 luarocks chsrc set lua 或 luarocks

View File

@ -379,7 +379,7 @@ cli_print_version ()
say ("This is free software: you are free to change and redistribute it."); say ("This is free software: you are free to change and redistribute it.");
say ("There is NO WARRANTY, to the extent permitted by law."); say ("There is NO WARRANTY, to the extent permitted by law.");
br(); br();
say ("Written by Aoran Zeng, Heng Guo and contributors. (See chsrc.c)"); say ("Written by Aoran Zeng, Heng Guo and contributors. (See chsrc-main.c)");
} }