From 9ba27b11f4f558729cb5e4bf97f4360ba73df852 Mon Sep 17 00:00:00 2001 From: memdmp Date: Mon, 26 May 2025 20:46:35 +0200 Subject: fix: if compinit is defined after us thats fine too --- zuwu.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zuwu.zsh') diff --git a/zuwu.zsh b/zuwu.zsh index 1b0e122..8f9997e 100755 --- a/zuwu.zsh +++ b/zuwu.zsh @@ -24,7 +24,7 @@ eval_append() { <<<"$2" >> "$1" eval "$2" } -if ! which compinit >/dev/null 2>/dev/null; then +if ! which compinit >/dev/null 2>/dev/null && ! grep compinit ~/.zshrc >/dev/null 2>/dev/null; then eval_append ~/.zshrc "$(<