Often, it is useful to jump to search for a directory and automatically change to it.
By comining the fd and fzf tools, we can create a simple cd
variant:
function fcd
set --local base "$HOME"
set --local target (fd --base-directory $base --type directory | fzf --query "$argv")
cd $base/$target
end
Call with fcd $query
where $query
is an optional string to initialize the search.