From e820e0219dfb1f0aa59d8bc29ffc6545d179a821 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Thu, 14 Oct 2021 22:37:32 +0200 Subject: [PATCH] docs: how to enable bash autocomplete from source --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 59a983df..3ff08189 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,13 @@ sudo cp scripts/autocomplete/bash /etc/bash_completion.d/abra source /etc/bash_completion.d/abra ``` +In development, you can source the script in your git checkout, just make sure +to set `PROG=abra`, otherwise it'll add completion to the wrong command: + +``` +PROG=abra source /path/to/abra/scripts/autocomplete/bash +``` + **(fi)zsh** (fi)zsh doesn't have an autocompletion folder by default but you can create one, then copy `scripts/autocomplete/zsh` into it and add a couple lines to your `~/.zshrc` or `~/.fizsh/.fizshrc`