Eyck_of_denesle@lemmy.zip to Open Source@lemmy.mlEnglish · 16 hours agoYazi - Blazing fast terminal file manager written in Rust, based on async I/Ogithub.comexternal-linkmessage-square31fedilinkarrow-up1225arrow-down13file-textcross-posted to: hackernews@lemmy.smeargle.fanshackernews@derp.foo
arrow-up1222arrow-down1external-linkYazi - Blazing fast terminal file manager written in Rust, based on async I/Ogithub.comEyck_of_denesle@lemmy.zip to Open Source@lemmy.mlEnglish · 16 hours agomessage-square31fedilinkfile-textcross-posted to: hackernews@lemmy.smeargle.fanshackernews@derp.foo
minus-squareEyck_of_denesle@lemmy.zipOPlinkfedilinkarrow-up2·14 hours agoIt does handles all types of archives by default. Encrypted ones too. How do you auto cd, I always wanted that but didn’t brother to check docs for it. If I remember correctly it’s by launching it as a shell script.
minus-squarethingsiplay@beehaw.orglinkfedilinkarrow-up1·14 hours agoYes, it’s a simple shell function; needs to be a function in your bashrc, not a script, because cd doesn’t work like that. Just copy the function from https://yazi-rs.github.io/docs/quick-start#shell-wrapper into your .bashrc: yy() { local tmp local cwd tmp="$(mktemp -t "yazi-cwd.XXXXXX")" yazi "${@}" --cwd-file="${tmp}" if cwd="$(cat -- "${tmp}")" && [ -n "${cwd}" ] && [ "${cwd}" != "${PWD}" ]; then builtin cd -- "${cwd}" || return fi rm -f -- "${tmp}" } I use yy instead single y.
It does handles all types of archives by default. Encrypted ones too.
How do you auto cd, I always wanted that but didn’t brother to check docs for it. If I remember correctly it’s by launching it as a shell script.
Yes, it’s a simple shell function; needs to be a function in your bashrc, not a script, because cd doesn’t work like that. Just copy the function from https://yazi-rs.github.io/docs/quick-start#shell-wrapper into your .bashrc:
yy() { local tmp local cwd tmp="$(mktemp -t "yazi-cwd.XXXXXX")" yazi "${@}" --cwd-file="${tmp}" if cwd="$(cat -- "${tmp}")" && [ -n "${cwd}" ] && [ "${cwd}" != "${PWD}" ]; then builtin cd -- "${cwd}" || return fi rm -f -- "${tmp}" }
I use
yy
instead singley
.