Adjust chsrc_conclude()

This commit is contained in:
Aoran Zeng
2024-11-22 09:08:32 +08:00
parent 6a59ec51e1
commit 722de55ecb
65 changed files with 234 additions and 124 deletions

View File

@@ -42,7 +42,8 @@ pl_nodejs_nvm_setsrc (char *option)
if (xy_file_exist (zshrc))
chsrc_append_to_file (w, zshrc);
chsrc_conclude (&source, SetsrcType_Auto);
ProgMode_ChgType = ProgMode_CMD_Reset ? ChgType_Reset : ChgType_Auto;
chsrc_conclude (&source);
}
@@ -52,7 +53,7 @@ pl_nodejs_nvm_setsrc (char *option)
void
pl_nodejs_nvm_resetsrc (char *option)
{
// pl_nodejs_nvm_setsrc (SetsrcType_Reset);
// pl_nodejs_nvm_setsrc (ChgType_Reset);
chsrc_error ("暂不支持对 nvm 重置");
exit (Exit_Unsupported);
}