From dc208f4211e7f6df7ec8cb62640f57d3e154910d Mon Sep 17 00:00:00 2001 From: Apurva Chitnis Date: Wed, 18 Jan 2017 18:55:16 +0000 Subject: [PATCH] Added useful info for setting up bash autocompletion. (#384) --- bash_completions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash_completions.md b/bash_completions.md index 6e3b71f1..7fa970fa 100644 --- a/bash_completions.md +++ b/bash_completions.md @@ -18,7 +18,7 @@ func main() { } ``` -That will get you completions of subcommands and flags. If you make additional annotations to your code, you can get even more intelligent and flexible behavior. +`out.sh` will get you completions of subcommands and flags. Copy it to `/etc/bash_completion.d/` as described [here](https://debian-administration.org/article/316/An_introduction_to_bash_completion_part_1) and reset your terminal to use autocompletion. If you make additional annotations to your code, you can get even more intelligent and flexible behavior. ## Creating your own custom functions