Revert "aliasrc | improve se() (#1433)" close #1459

This reverts commit e2d787992ed8cdd3105fdf8d45ab2d695796238b.
This commit is contained in:
Luke Smith 2025-03-18 20:05:39 +01:00
parent 5f385da9f6
commit fdfd23a82c
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252

View File

@ -14,10 +14,9 @@ for command in mount umount sv pacman updatedb su shutdown poweroff reboot ; do
done; unset command
se() {
s=("${HOME}/.local/bin/"**/*(.))
c="$(print -lnr ${s:t:r} | fzf)"
[[ "${c}" ]] && "${EDITOR}" ${${(M)s:#*/${c}*}[1]}
}
choice="$(find ~/.local/bin -mindepth 1 -printf '%P\n' | fzf)"
[ -f "$HOME/.local/bin/$choice" ] && $EDITOR "$HOME/.local/bin/$choice"
}
# Verbosity and settings that you pretty much just always are going to want.
alias \