From b1208f9db543b93c29d3d63098a2a39f2b0c00f0 Mon Sep 17 00:00:00 2001 From: f Date: Thu, 11 Jul 2024 12:01:21 -0300 Subject: [PATCH] fix: sometimes the completion directories already exist --- cli/cli.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/cli.go b/cli/cli.go index 6b971ade..fa2d2d9b 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -81,7 +81,7 @@ EXAMPLE: case "bash": fmt.Println(fmt.Sprintf(` # run the following commands to install auto-completion -sudo mkdir /etc/bash_completion.d/ +sudo mkdir -p /etc/bash_completion.d/ sudo cp %s /etc/bash_completion.d/abra echo "source /etc/bash_completion.d/abra" >> ~/.bashrc # To test, run the following: "abra app " - you should see command completion! @@ -89,7 +89,7 @@ echo "source /etc/bash_completion.d/abra" >> ~/.bashrc case "zsh": fmt.Println(fmt.Sprintf(` # run the following commands to install auto-completion -sudo mkdir /etc/zsh/completion.d/ +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 # to test, run the following: "abra app " - you should see command completion!