Updated Troubleshooting (markdown)
parent
0bfcb764ad
commit
20780738e6
1 changed files with 4 additions and 3 deletions
|
@ -7,14 +7,14 @@ these steps to check:
|
||||||
```zsh
|
```zsh
|
||||||
setopt EXTENDED_GLOB
|
setopt EXTENDED_GLOB
|
||||||
for ZDOTFILE in /etc/(zsh/)#(z|.z)(shenv|profile|shrc|login)(N) ${ZDOTDIR:-${HOME}}/.z(shenv|profile|shrc|login)(N); do
|
for ZDOTFILE in /etc/(zsh/)#(z|.z)(shenv|profile|shrc|login)(N) ${ZDOTDIR:-${HOME}}/.z(shenv|profile|shrc|login)(N); do
|
||||||
if grep -Eq '^[^#]*compinit' ${ZDOTFILE}; then
|
if grep -Eq '^[^#]*\bcompinit\b' ${ZDOTFILE}; then
|
||||||
print -u2 -P "%F{yellow}! You seem to be already calling %Bcompinit%b in %B${ZDOTFILE}%b.%f"
|
print -u2 -P "%F{yellow}! You seem to be already calling %Bcompinit%b in %B${ZDOTFILE}%b.%f"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
```
|
```
|
||||||
|
|
||||||
2. If there's any output, you can either:
|
2. If there's any output, you can either:
|
||||||
* Remove or disable the `compinit` call from each of the mentioned files:
|
* Remove the `compinit` call from each of the mentioned files:
|
||||||
* If you can edit the mentioned file, remove or comment the lines similar to these:
|
* If you can edit the mentioned file, remove or comment the lines similar to these:
|
||||||
```
|
```
|
||||||
autoload -Uz compinit
|
autoload -Uz compinit
|
||||||
|
@ -25,4 +25,5 @@ these steps to check:
|
||||||
* Or remove the `completion` module:
|
* Or remove the `completion` module:
|
||||||
1. Remove or comment the `zmodule completion` line from your `~/.zimrc` file.
|
1. Remove or comment the `zmodule completion` line from your `~/.zimrc` file.
|
||||||
2. Run `zimfw build` in your command prompt.
|
2. Run `zimfw build` in your command prompt.
|
||||||
|
|
||||||
3. Restart your terminal.
|
3. Restart your terminal.
|
||||||
|
|
Loading…
Reference in a new issue