Skip to content

Commit 06bb17f

Browse files
docs: update installation instructions in CLAUDE.md for clarity and add git installation option
fix(cli.py): update zsh completion function to use compdef for better compatibility
1 parent 8304dfb commit 06bb17f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CLAUDE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ make check # lint + format check + tests (CI equivalent)
2222
## Install globally
2323

2424
```bash
25-
uv tool install ".[all]" --from . # install as `kb` command
25+
uv tool install "kb[all] @ /home/ari/repos/kb" --force # install as `kb` command from local
26+
uv tool install "kb[all] @ git+https://github.com/ariel-frischer/kb.git" # install from git
2627
```
2728

2829
## Scope Model

src/kb/cli.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -782,13 +782,12 @@ def cmd_completion(shell: str):
782782

783783
if shell == "zsh":
784784
print(f"""\
785-
#compdef kb
786785
_kb() {{
787786
local -a commands
788787
commands=({subcommands})
789788
_arguments '1:command:({" ".join(subcommands.split())})' '*:file:_files'
790789
}}
791-
_kb "$@\"""")
790+
compdef _kb kb""")
792791
elif shell == "bash":
793792
print(f"""\
794793
_kb() {{

0 commit comments

Comments
 (0)