diff --git a/common/.config/zsh/configs/1-functions b/common/.config/zsh/configs/1-functions index 240c17d55..7b0b024cc 100644 --- a/common/.config/zsh/configs/1-functions +++ b/common/.config/zsh/configs/1-functions @@ -82,5 +82,6 @@ function togglefg () { zle -N togglefg function whed() { - [ -e "$1" ] && $EDITOR $(which "$1") + script=$(which "$1") + [ -e "$script" ] && $EDITOR $(which "$script") }