From 594ff57d45f34a844c67925227d1642e4c52214f Mon Sep 17 00:00:00 2001 From: Nils Gerstner Date: Wed, 29 Mar 2023 15:17:41 +0200 Subject: [PATCH] Add sort by date --- bin/findProject.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/findProject.sh b/bin/findProject.sh index 7e70259..c6334e6 100755 --- a/bin/findProject.sh +++ b/bin/findProject.sh @@ -14,7 +14,8 @@ _find_subfolder() { local root_dir="${1}" while read i; do basename "$i"; -done <<< "$(find "${HOME}/Documents/Code/GERSTNER" -mindepth 1 -maxdepth 1 -type d)" | fzf +done <<< "$(find "${root_dir}" -mindepth 1 -maxdepth 1 -type d -printf "%Ts\t%f\n" | sort -rn| cut -f 2)" | fzf +# find . -type f -printf "%Ts\t%f\n" | sort -n| cut -f 2 # fzf <<< "$(find "${root_dir}" -type d -mindepth 1 -maxdepth 1 -exec basename {} + 2> /dev/null)" }