From 8e4fed7c0fba5bec47f60d9ea201524dc6bd9e12 Mon Sep 17 00:00:00 2001 From: Yax Date: Mon, 4 May 2026 19:33:07 +0200 Subject: [PATCH] Improve find command --- dot_zshrc.tmpl | 2 +- private_dot_local/bin/executable_find_projects.tmpl | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl index 9de7737..d8b9c03 100644 --- a/dot_zshrc.tmpl +++ b/dot_zshrc.tmpl @@ -152,7 +152,7 @@ else echo "warning: sesh is not installed" >&2 fi if command -v zoxide &>/dev/null; then - eval "$(zoxide init zsh --cmd cd)" + eval "$(zoxide init zsh --no-cmd)" else echo "warning: zoxide is not installed" >&2 fi diff --git a/private_dot_local/bin/executable_find_projects.tmpl b/private_dot_local/bin/executable_find_projects.tmpl index 962e9cb..b883403 100644 --- a/private_dot_local/bin/executable_find_projects.tmpl +++ b/private_dot_local/bin/executable_find_projects.tmpl @@ -1,2 +1,6 @@ # no cache but more accurate than pj (https://github.com/josephschmitt/pj) -fd -H -d 7 -t d -E .git -E .gitlab . "{{ .projectdir }}" | awk '{ print length, $0 }' | sort -n | cut -d' ' -f2- +FD=$(command -v fdfind || command -v fd) +"$FD" -H -d 7 -t d -E .git -E .gitlab . "{{ .projectdir }}" \ + | awk '{ print length, $0 }' \ + | sort -n \ + | cut -d' ' -f2-