Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 922 Bytes

cli-autocomplete.mdx

File metadata and controls

37 lines (25 loc) · 922 Bytes
title sidebar_label
blitz autocomplete
blitz autocomplete

Displays autocomplete installation instructions.

Note: Autocomplete currently doesn't work on Windows

blitz autocomplete [shell]
Argument Required Description
shell No zsh or bash

Example Output

> blitz autocomplete zsh

Building the autocomplete cache... done

Setup Instructions for BLITZ CLI Autocomplete ---

1) Add the autocomplete env var to your zsh profile and source it
$ printf "$(blitz autocomplete:script zsh)" >> ~/.zshrc; source ~/.zshrc

NOTE: After sourcing, you can run `$ compaudit -D` to ensure no permissions conflicts are present

2) Test it out, e.g.:
$ blitz <TAB>                 # Command completion
$ blitz command --<TAB>       # Flag completion

Enjoy!