feat(fish): 添加 fish 模块与交互配置

This commit is contained in:
2026-04-09 15:50:34 +08:00
parent 99f9608282
commit 193cbdb11b
4 changed files with 148 additions and 2 deletions
+12
View File
@@ -0,0 +1,12 @@
function yy
set -l tmp (mktemp -t yazi-cwd.XXXXXX)
command yazi $argv --cwd-file="$tmp"
if set -l cwd (command cat -- "$tmp")
if test -n "$cwd" -a "$cwd" != "$PWD"
builtin cd -- "$cwd"
end
end
command rm -f -- "$tmp"
end