mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
feat(fzf): add new function to jump to directories
This commit is contained in:
11
zshrc
11
zshrc
@@ -167,6 +167,17 @@ fo() {
|
||||
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() {
|
||||
local declare dirs=()
|
||||
|
||||
Reference in New Issue
Block a user