공식 github: https://github.com/sxyazi/yazi
# 1. 바이너리 설치 (가장 빠름)
curl -sL https://github.com/sxyazi/yazi/releases/latest/download/yazi-x86_64-unknown-linux-gnu.zip -o /tmp/yazi.zip
unzip /tmp/yazi.zip -d /tmp/yazi
cd /tmp/yazi/yazi-x86_64-unknown-linux-gnu
mv yazi ya ~/.local/bin/
# 확인
which yazi
yazi --versionfish함수 생성
# yazi용 fish 함수 생성
mkdir -p ~/.config/fish/functions
cat > ~/.config/fish/functions/y.fish << 'EOF'
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
EOF테스트
# fish reload
exec fish
# yazi 실행 (cd on quit 기능 포함)
y
# 또는 직접
yazi