Pages

Friday, July 5, 2024

how to cd around using vifm

you add this to your .bashrc and then source .bashrc


vicd()
{
    local dst="$(command vifm --choose-dir - "$@")"
    if [ -z "$dst" ]; then
        echo 'Directory picking cancelled/failed'
        return 1
    fi
    cd "$dst"
}

THE TRICK is you need to use vicd to open vifm!! NOT VIFM. i was banging my head against a wall wondering why this wasn't working for me till i realized this

vicd is the new vifm

No comments:

Post a Comment