Try to fix for loop

This commit is contained in:
Thomas Avé 2024-04-19 23:29:35 +02:00
parent 8f16438478
commit bc63a55b61
1 changed files with 4 additions and 4 deletions

View File

@ -112,9 +112,7 @@ function zvm_after_init() {
fi fi
if [ ! -f $FZY_CACHE ]; then if [ ! -f $FZY_CACHE ]; then
PATHS="" PATHS=""
search_dirs=(~/.config/waybar/ \
for i in \
~/.config/waybar/ \
~/.config/xmodmap/ \ ~/.config/xmodmap/ \
~/.config/zsh/ \ ~/.config/zsh/ \
~/.config/tmux/ \ ~/.config/tmux/ \
@ -139,8 +137,10 @@ function zvm_after_init() {
~/Workspace/ \ ~/Workspace/ \
~/Containers/ \ ~/Containers/ \
~/Storage/Shared/ \ ~/Storage/Shared/ \
~/Storage/Thomas/ ; do ~/Storage/Thomas/ \
)
for i in $search_dirs ; do
if [ -d $i ]; then if [ -d $i ]; then
PATHS="$PATHS\n$i" PATHS="$PATHS\n$i"
PATHS="$PATHS\n$(fd . $i -t d -d 5)" PATHS="$PATHS\n$(fd . $i -t d -d 5)"