From 6dcfc06338951835975187aaba117fef9d834a0d Mon Sep 17 00:00:00 2001 From: Jeremy McClure Date: Sat, 1 Aug 2026 02:07:56 -0400 Subject: [PATCH] zsh: guard update_zshrc call against missing function --- zsh/zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/zshrc b/zsh/zshrc index 99c1c50..35b8451 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -35,7 +35,7 @@ alias open-ports="ss -tulpn | grep LISTEN" alias yeet='yay -Rcs' # Auto-update on interactive shell start. Disable with ZSHRC_UPDATE_DISABLED=true. -[[ -o interactive && "$ZSHRC_UPDATE_DISABLED" != "true" ]] && update_zshrc +[[ -o interactive && "$ZSHRC_UPDATE_DISABLED" != "true" ]] && (( $+functions[update_zshrc] )) && update_zshrc [[ -f $HOME/.zshrc.local ]] || touch $HOME/.zshrc.local source $HOME/.zshrc.local