use fd instead of fdfind

This commit is contained in:
Thomas Avé 2024-04-23 23:02:03 +02:00
parent 02fc2ef1b6
commit 8183bcfa2b
1 changed files with 3 additions and 2 deletions

View File

@ -67,7 +67,7 @@ function find_global_directories() {
for i in $search_dirs ; do
if [ -d $i ]; then
PATHS="$PATHS\n$i"
PATHS="$PATHS\n$(fdfind . $i -t d -d 8)"
PATHS="$PATHS\n$(fd . $i -t d -d 8)"
fi
done
echo -e $PATHS > $FZY_CACHE
@ -103,7 +103,7 @@ function edit_global_files() {
search_dirs=(~/Workspace/ )
for i in $search_dirs ; do
if [ -d $i ]; then
PATHS="$PATHS\n$(fdfind . $i -t f)"
PATHS="$PATHS\n$(fd . $i -t f)"
fi
done
echo -e $PATHS > $FZY_CACHE
@ -290,6 +290,7 @@ fi
if command -v fdfind &> /dev/null; then
alias fd="fdfind"
fi
function o () {
xdg-open "$1" &!
}