Skip to content

Commit fa70a43

Browse files
committed
README: Document how to load bash completions using zinit
This allows also async loading with no efforts
1 parent b4bf3e6 commit fa70a43

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,22 @@ Using [Oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh):
5858

5959
source ~/.zshrc
6060

61+
Using [Zinit](https://github.com/zdharma/zinit):
62+
63+
- If you're using normal loading mode:
64+
65+
# Replace `light` with `load` if you want some more debugging
66+
zinit ice depth=1 # optional, but avoids downloading the full history
67+
zinit light 3v1n0/zsh-bash-completions-fallback
68+
69+
- If you're using turbo mode, you can avoid using the internal lazy mode:
70+
71+
zinit wait lucid nocd depth=1 \
72+
atinit='ZSH_BASH_COMPLETIONS_FALLBACK_LAZYLOAD_DISABLE=true' \
73+
for 3v1n0/zsh-bash-completions-fallback
74+
75+
- Add those to your `~/.zshrc` to keep the changes persistent
76+
6177
Using other plugins manager:
6278

6379
# Depending on the tool the syntax may vary but it's generally just

0 commit comments

Comments
 (0)