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)" }