From db9aad5dcde74181f723fa8a01ba13f526e2f9a7 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Wed, 25 Jun 2025 13:58:22 +0200 Subject: [PATCH] zsh:diffcmds: Fix wrong variable assignment --- .config/zsh/zshrc.d/40-functions.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/zsh/zshrc.d/40-functions.zsh b/.config/zsh/zshrc.d/40-functions.zsh index b05a8fd..462c477 100644 --- a/.config/zsh/zshrc.d/40-functions.zsh +++ b/.config/zsh/zshrc.d/40-functions.zsh @@ -677,9 +677,9 @@ diffcmds() { local -a template args final_cmd if (( $+commands[vimdiff] && ! $+commands[diff] )); then - cmd=vimdiff + diff_cmd=vimdiff elif (( $+commands[diff] && ! $+commands[vimdiff] )); then - cmd=diff + diff_cmd=diff elif (( $+commands[diff] && $+commands[vimdiff] )); then if [[ $EDITOR =~ vi || $VISUAL =~ vi ]]; then diff_cmd=vimdiff