feat: add yazi integration with fish

This commit is contained in:
DACHXY 2025-01-25 21:09:16 +08:00
parent 24afd66d64
commit 3049173514
12 changed files with 2386 additions and 3 deletions

View file

@ -8,6 +8,16 @@ in
enable = true;
interactiveShellInit = ''
set fish_greeting # Disable greeting
# Yazi
function y
set tmp (mktemp -t "yazi-cwd.XXXXXX")
yazi $argv --cwd-file="$tmp"
if set cwd (command cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
builtin cd -- "$cwd"
end
rm -f -- "$tmp"
end
'';
plugins = [
{