summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/shell/aliasrc7
1 files changed, 4 insertions, 3 deletions
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc
index 75327bf..5347fcd 100644
--- a/.config/shell/aliasrc
+++ b/.config/shell/aliasrc
@@ -14,9 +14,10 @@ for command in mount umount sv pacman updatedb su shutdown poweroff reboot ; do
done; unset command
se() {
- choice="$(find ~/.local/bin -mindepth 1 -printf '%P\n' | fzf)"
- [ -f "$HOME/.local/bin/$choice" ] && $EDITOR "$HOME/.local/bin/$choice"
- }
+ s=("${HOME}/.local/bin/"**/*(.))
+ c="$(print -lnr ${s:t:r} | fzf)"
+ [[ "${c}" ]] && "${EDITOR}" ${${(M)s:#*/${c}*}[1]}
+}
# Verbosity and settings that you pretty much just always are going to want.
alias \