zsh: guard update_zshrc call against missing function

This commit is contained in:
2026-08-01 02:07:56 -04:00
parent 0c510b06d7
commit 6dcfc06338
+1 -1
View File
@@ -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