diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2025-03-18 20:05:39 +0100 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2025-03-18 20:05:39 +0100 |
| commit | fdfd23a82ca6dc496061d0cc8e24fa3dd5bbe069 (patch) | |
| tree | f1d4f2b1e2b56cb01fb9ea22856af54e5313ed47 /.config/shell | |
| parent | 5f385da9f686ffb9ab61c194a46539cbe53357ea (diff) | |
| download | eibhear-fdfd23a82ca6dc496061d0cc8e24fa3dd5bbe069.tar.gz eibhear-fdfd23a82ca6dc496061d0cc8e24fa3dd5bbe069.tar.zst eibhear-fdfd23a82ca6dc496061d0cc8e24fa3dd5bbe069.zip | |
Revert "aliasrc | improve se() (#1433)" close #1459
This reverts commit e2d787992ed8cdd3105fdf8d45ab2d695796238b.
Diffstat (limited to '.config/shell')
| -rw-r--r-- | .config/shell/aliasrc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index c9ddbc4..35ceae8 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 \ |
