Skip to content

Commit 4b97f10

Browse files
committed
support completions with brew
1 parent 31883f9 commit 4b97f10

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Formula/devproc.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ class Devproc < Formula
2424

2525
def install
2626
bin.install "devproc"
27+
28+
# Generate and install shell completions
29+
generate_completions_from_executable(bin/"devproc", "completions")
2730
end
2831

2932
test do

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,9 @@ When config is reloaded:
326326

327327
### Shell Completions
328328

329-
Enable tab completion for commands and options:
329+
**Homebrew users**: Completions are installed automatically! Just ensure your shell is configured to load Homebrew completions.
330+
331+
**Manual installation**: Enable tab completion for commands and options:
330332

331333
```bash
332334
# Bash (add to ~/.bashrc)

0 commit comments

Comments
 (0)