1
0
Fork 0

zsh: fix whed function

This commit is contained in:
Luca Bilke 2024-10-16 11:15:33 +02:00
parent 0171baf659
commit ab50b46751

View file

@ -82,5 +82,6 @@ function togglefg () {
zle -N togglefg
function whed() {
[ -e "$1" ] && $EDITOR $(which "$1")
script=$(which "$1")
[ -e "$script" ] && $EDITOR $(which "$script")
}