mirror of
https://github.com/RubyMetric/chsrc
synced 2025-07-16 04:07:27 +08:00
parent
34c90e13f4
commit
cb7310845f
@ -13,6 +13,7 @@
|
||||
* | Terrasse <terrasse@qq.com>
|
||||
* | Lontten <lontten@163.com>
|
||||
* | happy game <happygame1024@gmail.com>
|
||||
* | Word2VecT <tangzinan@bupt.edu.cn>
|
||||
* | xuan <wick.dynex@qq.com>
|
||||
* | GnixAij <gaojiaxing0220@gmail.com>
|
||||
* | ChatGPT <https://chatgpt.com>
|
||||
@ -30,7 +31,7 @@
|
||||
* | Rui Yang <techoc@foxmail.com>
|
||||
* |
|
||||
* Created On : <2023-08-28>
|
||||
* Last Modified : <2025-07-13>
|
||||
* Last Modified : <2025-07-14>
|
||||
*
|
||||
* chsrc: Change Source —— 全平台通用命令行换源工具
|
||||
* ------------------------------------------------------------*/
|
||||
|
@ -2,7 +2,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* -------------------------------------------------------------
|
||||
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||
* Contributors : Nil Null <nil@null.org>
|
||||
* Contributors : Word2VecT <tangzinan@bupt.edu.cn>
|
||||
* Created On : <2023-09-10>
|
||||
* Major Revision : 3
|
||||
* Last Modified : <2025-07-14>
|
||||
@ -52,7 +52,7 @@ wr_homebrew_setsrc (char *option)
|
||||
{
|
||||
chsrc_yield_source_and_confirm (wr_homebrew);
|
||||
|
||||
char *w = RAWSTR_wr_homebrew_config_in_bash;
|
||||
char *w = xy_str_gsub (RAWSTR_wr_homebrew_config_in_bash, "@1@", source.url);
|
||||
|
||||
char *zshrc = xy_zshrc;
|
||||
chsrc_backup (zshrc);
|
||||
@ -68,7 +68,7 @@ wr_homebrew_setsrc (char *option)
|
||||
char *fishrc = xy_fishrc;
|
||||
if (xy_file_exist (fishrc))
|
||||
{
|
||||
char *w = RAWSTR_wr_homebrew_config_in_fish;
|
||||
char *w = xy_str_gsub (RAWSTR_wr_homebrew_config_in_fish, "@1@", source.url);
|
||||
chsrc_backup (fishrc);
|
||||
chsrc_append_to_file (w, fishrc);
|
||||
}
|
||||
|
@ -1,3 +1,13 @@
|
||||
<!-- -----------------------------------------------------------
|
||||
! SPDX-License-Identifier: GPL-3.0-or-later
|
||||
! -------------------------------------------------------------
|
||||
! Config Type : rawstr4c (Markdown)
|
||||
! Config Authors: Aoran Zeng <ccmywish@qq.com>
|
||||
! Contributors : Word2VecT <tangzinan@bupt.edu.cn>
|
||||
! Created On : <2025-07-14>
|
||||
! Last Modified : <2025-07-14>
|
||||
! ---------------------------------------------------------- -->
|
||||
|
||||
# rawstr4c input
|
||||
|
||||
该文件尽可能测试 `rawstr4c` 的多个功能,以下三个变量的输出,将分别为:
|
||||
|
Loading…
x
Reference in New Issue
Block a user