From 7f0a74d3c30dc1ef3d255d0141111b7fd9a7c299 Mon Sep 17 00:00:00 2001 From: f Date: Thu, 11 Jul 2024 12:02:38 -0300 Subject: [PATCH] fix: source autocompletion on the current terminal --- cli/cli.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/cli.go b/cli/cli.go index 8377c3fc..cea0b9ef 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -84,6 +84,7 @@ EXAMPLE: sudo mkdir -p /etc/bash_completion.d/ sudo cp %s /etc/bash_completion.d/abra echo "source /etc/bash_completion.d/abra" >> ~/.bashrc +source /etc/bash_completion.d/abra # To test, run the following: "abra app " - you should see command completion! `, autocompletionFile)) case "zsh": @@ -92,6 +93,7 @@ echo "source /etc/bash_completion.d/abra" >> ~/.bashrc sudo mkdir -p /etc/zsh/completion.d/ sudo cp %s /etc/zsh/completion.d/abra echo "PROG=abra\n_CLI_ZSH_AUTOCOMPLETE_HACK=1\nsource /etc/zsh/completion.d/abra" >> ~/.zshrc +source /etc/zsh/completion.d/abra # to test, run the following: "abra app " - you should see command completion! `, autocompletionFile)) case "fish": @@ -100,6 +102,7 @@ echo "PROG=abra\n_CLI_ZSH_AUTOCOMPLETE_HACK=1\nsource /etc/zsh/completion.d/abra sudo mkdir -p /etc/fish/completions sudo cp %s /etc/fish/completions/abra echo "source /etc/fish/completions/abra" >> ~/.config/fish/config.fish +source /etc/fish/completions/abra # to test, run the following: "abra app " - you should see command completion! `, autocompletionFile)) }