From 4763293c29ad6154bf5c705036c058305ae67b09 Mon Sep 17 00:00:00 2001 From: Eric Nielsen <4120606+ericbn@users.noreply.github.com> Date: Wed, 2 Oct 2024 09:23:26 -0500 Subject: [PATCH] Mention skip_global_compinit=1 --- Troubleshooting.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Troubleshooting.md b/Troubleshooting.md index 458948d..5198969 100644 --- a/Troubleshooting.md +++ b/Troubleshooting.md @@ -4,6 +4,12 @@ If you are using the `completion` module, there can be a conflict if other scrip In case you're getting a "warning: compinit being called again after completion module at .../modules/completion/init.zsh" mentioning Zim's completion module, then possibly this means your `${ZIM_HOME}/init.zsh script` in being sourced twice. Double check your `~/.zshrc` file. +If you use Ubuntu and installed Zsh with apt, then add the following line to your `~/.zshenv` file: + +```zsh +skip_global_compinit=1 +``` + In case you're getting a "warning: compinit being called again after completion module at ..." message in the terminal, mentioning another script, then remove the `compinit` call from the mentioned file. In case you're getting a "warning: completion was already initialized before completion module." message in the terminal, then follow @@ -33,4 +39,4 @@ these steps to check further: 5. If there's another "compinit being called at ..." message, then repeat steps 3-4 . -6. Remove the lines added to `~/.zshenv` by the first step. +6. Remove the lines added to `~/.zshenv` in the first step.