perf(tmux-sessionizer): improve fd command speed

This commit is contained in:
Moritz Böhme 2023-04-26 10:57:43 +02:00
parent e8347cf955
commit 35c5d5ed4b

View file

@ -13,7 +13,7 @@ let
if [[ $# -eq 1 ]]; then if [[ $# -eq 1 ]]; then
selected=$1 selected=$1
else else
selected=$(fd -gH '.git' ~/ --min-depth 1 --max-depth 5 --type d --prune --exec dirname {} | fzf) selected=$(fd -HIg '.git' ~/ --min-depth 1 --max-depth 5 --type d --prune --exec dirname {} | fzf)
fi fi
if [[ -z $selected ]]; then if [[ -z $selected ]]; then