Try to fix for loop
This commit is contained in:
parent
8f16438478
commit
bc63a55b61
|
@ -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)"
|
||||||
|
|
Loading…
Reference in New Issue