Skip to content

Commit 44b7927

Browse files
authored
docs: update readme with a troubleshooting section (#63)
1 parent ed36788 commit 44b7927

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

.github/cspell.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
"words": [
2020
"subcommand",
2121
"inverseflag",
22-
"trueflag"
22+
"trueflag",
23+
"autoload",
24+
"compinit"
2325
]
2426
}

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ For an overview of how this package works, check out the [documentation][docs_li
6363

6464
---
6565

66-
### ⚠️ Using analytics
66+
## Troubleshooting 🧠🔨
67+
68+
### Tab completion is taking too long
6769

6870
Handling completion requests should be straightforward.
6971

@@ -81,6 +83,18 @@ Future<int?> runCommand(ArgResults topLevelResults) async {
8183
// ... analytics and other unrelated stuff
8284
```
8385

86+
### Tab completion is not working on my zsh terminal
87+
88+
If you are not using any zsh framework such as [Oh My Zsh][oh_my_zsh], you have to start the completion system manually.
89+
90+
Add the following lines to your `~/.zshrc` file:
91+
92+
```zsh
93+
# Add this to the start of your zsh starter file (~/.zshrc)
94+
autoload -Uz compinit
95+
compinit
96+
```
97+
8498
[dart_install_link]: https://dart.dev/get-dart
8599
[license_badge]: https://img.shields.io/badge/license-MIT-blue.svg
86100
[license_link]: https://opensource.org/licenses/MIT
@@ -99,3 +113,4 @@ Future<int?> runCommand(ArgResults topLevelResults) async {
99113
[coverage_badge]: https://raw.githubusercontent.com/VeryGoodOpenSource/cli_completion/main/coverage_badge.svg
100114
[ci_badge]: https://github.com/VeryGoodOpenSource/cli_completion/workflows/ci/badge.svg
101115
[ci_link]: https://github.com/VeryGoodOpenSource/cli_completion/actions
116+
[oh_my_zsh]: https://ohmyz.sh/

0 commit comments

Comments
 (0)