1
0
Fork 0

zsh: fix whed function

This commit is contained in:
Luca Bilke 2024-10-16 11:15:33 +02:00
parent 16042bfda5
commit 2cb32e39c3
Signed by: luca
GPG Key ID: F6E11C9BAA7C82F5
1 changed files with 2 additions and 1 deletions

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")
}