Skip to content

Commit

Permalink
missing instructions for tab completion
Browse files Browse the repository at this point in the history
  • Loading branch information
speckdavid committed Jul 18, 2024
1 parent 48ee112 commit 061d937
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions TABCOMPLETION.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,15 @@ activate-global-python-argcomplete

Restart your shell afterwards.

## Completion for Search Component

## Completion for search component

You can also enable tab completion for the search binary by adding the following to your `.bashrc` or `.zshrc`.

```bash
function _downward_complete() {
local IFS=$'\n'
COMPREPLY=( $( "$1" --bash-complete \
"$COMP_POINT" "$COMP_LINE" "$COMP_CWORD" ${COMP_WORDS[@]}))
}
complete -o nosort -F _downward_complete downward
```

0 comments on commit 061d937

Please sign in to comment.