From 8183bcfa2b004efee08ab93272079bdb92f33fe2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Tue, 23 Apr 2024 23:02:03 +0200 Subject: [PATCH] use fd instead of fdfind --- .config/zsh/.zshrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 3c560d0..44869dc 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -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" &! }