1
0
Fork 0
mirror of synced 2024-11-22 07:25:33 -05:00

Updated Troubleshooting (markdown)

Eric Nielsen 2022-05-19 18:51:16 -05:00
parent d6608e2b38
commit 0bfcb764ad

@ -1,7 +1,11 @@
## Completion is not working ## Completion is not working
If you are using the `completion` module, there can be a conflict if other scripts are running `compinit` too. Follow
these steps to check:
1. Run the following code in your terminal: 1. Run the following code in your terminal:
```zsh ```zsh
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 '^[^#]*compinit' ${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"
@ -16,7 +20,8 @@
autoload -Uz compinit autoload -Uz compinit
compinit compinit
``` ```
* If the mentioned file is read-only, read it and look for specific instructions on how the `compinit` call should be disabled. * If the mentioned file is read-only, read it and look for specific instructions on how the `compinit` call should
be disabled.
* 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.