mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2025-10-07 07:22:36 +02:00
prevent se from editing the wrong script
this happens every time a script is selected and another one matches before it, this happens if you select a script such as "sd" while having another one called "cron/sdo"
This commit is contained in:
parent
83989b98a3
commit
cacfc704f2
@ -14,9 +14,10 @@ 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]}
|
||||
local -r bindir=~sc/
|
||||
s=("${bindir}"**/*(.))
|
||||
c="$(print -lnr ${s/$bindir/} | fzf)"
|
||||
[[ "${c}" ]] && "${EDITOR}" "$bindir$c"
|
||||
}
|
||||
|
||||
# Verbosity and settings that you pretty much just always are going to want.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user