dot/.config/scriptrc/fuzzies.sh

32 lines
667 B
Bash
Raw Permalink Normal View History

2024-02-21 13:06:01 +01:00
function fcd {
where="${1:-.}"
echo $where
cd $(find $where \( \
-name ".git" -o \
-name ".dotnet" -o \
-name "debug" -o \
-name "bin" -o \
-name "obj" -o \
-name ".idea" -o \
-name ".fleet" -o \
-name "node_modules" -o \
-name "volumes" -o \
-name ".terraform" -o \
-name "Library" -o \
-name "Pictures" -o \
-name "Documents" -o \
-name ".local" -o \
-name ".nuget" -o \
-name ".npm" -o \
-name ".vscode" -o \
-name ".rustup" -o \
-name ".cargo" -o \
-name ".quokka" -o \
-name ".vscode-insiders" \
\) -prune -false -o -type d -print | fzf)
}
function fv {
vim $(fzf)
}