Skip to content

Commit

Permalink
Merge pull request #1762 from urfave/bash-compl-nits
Browse files Browse the repository at this point in the history
Bash completion nits
  • Loading branch information
meatballhat committed Jun 19, 2023
2 parents c023d9b + e315414 commit a97a5d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Empty file modified autocomplete/bash_autocomplete
100755 → 100644
Empty file.
4 changes: 4 additions & 0 deletions docs/v2/examples/bash-completions.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ func main() {
To enable auto-completion for the current shell session, a bash script,
`autocomplete/bash_autocomplete` is included in this repo.

> :warning: The `bash-completion` package or equivalent that provides the
> `_get_comp_words_by_ref` function for the target platform must be installed and
> initialized for this completion script to work correctly.
To use `autocomplete/bash_autocomplete` set an environment variable named `PROG`
to the name of your program and then `source` the
`autocomplete/bash_autocomplete` file.
Expand Down

0 comments on commit a97a5d7

Please sign in to comment.