Setup shell completion

Learn how to set up shell completion

Using hit with shell completions reduces the number of keystrokes required to execute a request by an order of magnitude.

To enable shell completion in your current shell:

source <(hit completion)

Once enabled, press TAB to get a recommendation for all available request identifiers in the current working directory.

To set up completion permanently, please follow the instructions specific to your shell:

Bash

echo '
# enable shell completions for hit command
# https://hit.yolo42.com
source <(hit completion)
' >> ~/.bashrc

Zsh

echo '
# enable shell completions for hit command
# https://hit.yolo42.com
source <(hit completion)
' >> ~/.zshrc

If you are using hit with another shell and would like auto-completion support, please open a feature request with us.