add missing path to fd

This commit is contained in:
xesc 2024-07-26 23:34:24 +02:00
parent e02e6c2620
commit e42b7e95d6

View file

@ -3,7 +3,7 @@
HOMEDIR=~ HOMEDIR=~
which fd > /dev/null which fd > /dev/null
if [ 0 = $? ]; then if [ 0 = $? ]; then
SEL_DIR=$(fd --type directory | fzf) # if fd-find is installed SEL_DIR=$(fd . ~ --type directory | fzf) # if fd-find is installed
else else
SEL_DIR=$(find ~ -not -path "*/.*" -type d -print 2>/dev/null | fzf) SEL_DIR=$(find ~ -not -path "*/.*" -type d -print 2>/dev/null | fzf)
fi fi