capture sub-directories too

This commit is contained in:
Emre AKYÜZ 2024-09-07 15:52:54 +03:00 committed by GitHub
parent 2d79fbeb41
commit bfe1c0a592
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,7 +14,7 @@ for command in mount umount sv pacman updatedb su shutdown poweroff reboot ; do
done; unset command
se() {
s=("${HOME}/.local/bin/"*)
s=("${HOME}/.local/bin/"**/*(.))
c="$(print -lnr ${s:t:r} | fzf)"
[[ "${c}" ]] && "${EDITOR}" ${${(M)s:#*/${c}*}[1]}
}