From 2cb32e39c3fdce4cff4cbc22dd65fd13b89ca0f0 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Wed, 16 Oct 2024 11:15:33 +0200 Subject: [PATCH] zsh: fix whed function --- common/.config/zsh/configs/1-functions | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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") }