feat(fzf): add new function to jump to directories

This commit is contained in:
Stefan Imhoff
2022-07-30 13:15:30 +02:00
parent d40378e743
commit a3b636c067

11
zshrc
View File

@@ -167,6 +167,17 @@ fo() {
fi fi
} }
# fcd - cd into directory
fcd() {
cd $(find * -type d | fzf --preview 'tree -C {} | head -50')
}
# fhcd Jump to home directory and search for directories
fhcd() {
cd $HOME
cd $(find * -type d | fzf --preview 'tree -C {} | head -50')
}
# fdr - cd to selected parent directory # fdr - cd to selected parent directory
fdr() { fdr() {
local declare dirs=() local declare dirs=()