yazi 설치 – tui 탐색기

공식 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 --version

fish함수 생성

# 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

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다