summaryrefslogtreecommitdiffstats
path: root/.config/shell
diff options
context:
space:
mode:
authorMaks Jopek <maks@jopek.eu>2026-07-12 15:30:03 +0200
committerMaks Jopek <maks@jopek.eu>2026-07-12 15:30:03 +0200
commit497f40ed5a286e52383cc77e81aa1f49b74df925 (patch)
treeb22ecddb58d2bac5be1285f10f4e0e7e44db6690 /.config/shell
parentcfe0107b0b47cff187ffef91d1ae6e4d5566b370 (diff)
parent0e8bd85602cbe3f894d0cf5b0ce8af5cda40fd66 (diff)
downloadeibhear-497f40ed5a286e52383cc77e81aa1f49b74df925.tar.gz
eibhear-497f40ed5a286e52383cc77e81aa1f49b74df925.tar.zst
eibhear-497f40ed5a286e52383cc77e81aa1f49b74df925.zip
Merge remote-tracking branch 'voidrice/master'HEADmaster
Diffstat (limited to '.config/shell')
-rw-r--r--.config/shell/aliasrc7
1 files changed, 3 insertions, 4 deletions
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc
index fe7c70c..2f11a5f 100644
--- a/.config/shell/aliasrc
+++ b/.config/shell/aliasrc
@@ -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 \