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
No comments:
Post a Comment