I'm trying to write a shell function to rapidly cd into any directory in my home folder, using the fd and fzf programs.
This is what I have so far
function fdcd() {
cd "$(fd --type d --ignore-file ~/.config/fd/ignore --hidden | fzf)"
}
which has two problems:
1) it only lists the directories contained in my current working directory, instead of every directory in my home folder;
2) idk if this is my shell's fault, but after I use this command my shell prompt doesn't immediately update to the new directory, instead I have to issue a command (even a blank one) first for it to update, which is annoying.
Any help is appreciated.