From 30a72e88357decd0196bdae4bf4986e3e5123637 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Fri, 15 Jun 2018 20:50:23 +0200 Subject: [PATCH] Expand completion troubleshooting documentation --- Troubleshooting.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Troubleshooting.md b/Troubleshooting.md index 1c4e455..2eb4f08 100644 --- a/Troubleshooting.md +++ b/Troubleshooting.md @@ -31,7 +31,16 @@ Many completion problems, including the infamous `command not found: compdef`, c 1. First, try to remove your completion cache with `rm ~/.zcompdump*`, close and reopen your shells. 2. If you still have problems, try fully resetting the completion system, as explained by - [**@dragon788**](https://github.com/robbyrussell/oh-my-zsh/issues/630#issuecomment-70291622). + [**@dragon788**](https://github.com/robbyrussell/oh-my-zsh/issues/630#issuecomment-70291622): + + ```zsh + compaudit | xargs chmod g-w,o-w + compaudit | xargs chown "$USER" + rm ~/.zcompdump* + exec zsh + ``` + +3. If nothing helps you might have encountered a bug within a particular command's completion. Open a new issue documenting the issue, and if possible provide a trace of the completion function. You can do that by writing the command you want to complete, then pressing CTRL+X followed by ?. ### Other problems