Skip to content

对fish的支持和补全#264

Open
Czy014 wants to merge 3 commits into
wnlen:masterfrom
Czy014:feature/fish-support
Open

对fish的支持和补全#264
Czy014 wants to merge 3 commits into
wnlen:masterfrom
Czy014:feature/fish-support

Conversation

@Czy014

@Czy014 Czy014 commented May 27, 2026

Copy link
Copy Markdown

很抱歉重新开了个PR,之前的PR #258 在我修改分支后自动关闭了。我调整了一下PR请求的分支,方便Sync你项目的master分支。

针对你提出的一些问题我进行了修改,主要是提到的 clashproxy off / clashctl proxy off 的行为一致性问题:

  • 已还原 Bash/Zsh 的原有行为,scripts/core/alias.sh 相对 master 不再有 diff。
  • Fish 中 clashproxy off 已对齐 Bash/Zsh,走 clashctl proxy off,不会关闭整个 runtime。
  • Fish 中 clashctl proxy on/off 已对齐 Bash/Zsh:
    • proxy on 只开启 proxy 接管并同步当前 shell proxy 环境;
    • proxy off 只关闭 proxy 接管并清理当前 shell proxy 环境;
    • 不再等同于 clashctl off
  • Fish 中 clashctl on 的失败兜底逻辑已补齐为 Bash/Zsh 同款:当 clashctl on 返回非 0 时,会尝试通过 proxy on 同步当前 shell。
  • 修复 Fish 下 TMPDIR 未设置时临时文件路径可能展开到 /clashon.XXXXXX 的问题。

@Czy014

Czy014 commented May 27, 2026

Copy link
Copy Markdown
Author

有3个commit,若需要sqush也可以调整

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant