fix: sometimes the completion directories already exist
This commit is contained in:
parent
b8e1a3b75f
commit
b1208f9db5
@ -81,7 +81,7 @@ EXAMPLE:
|
|||||||
case "bash":
|
case "bash":
|
||||||
fmt.Println(fmt.Sprintf(`
|
fmt.Println(fmt.Sprintf(`
|
||||||
# run the following commands to install auto-completion
|
# 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
|
sudo cp %s /etc/bash_completion.d/abra
|
||||||
echo "source /etc/bash_completion.d/abra" >> ~/.bashrc
|
echo "source /etc/bash_completion.d/abra" >> ~/.bashrc
|
||||||
# To test, run the following: "abra app <hit tab key>" - you should see command completion!
|
# To test, run the following: "abra app <hit tab key>" - you should see command completion!
|
||||||
@ -89,7 +89,7 @@ echo "source /etc/bash_completion.d/abra" >> ~/.bashrc
|
|||||||
case "zsh":
|
case "zsh":
|
||||||
fmt.Println(fmt.Sprintf(`
|
fmt.Println(fmt.Sprintf(`
|
||||||
# run the following commands to install auto-completion
|
# 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
|
sudo cp %s /etc/zsh/completion.d/abra
|
||||||
echo "PROG=abra\n_CLI_ZSH_AUTOCOMPLETE_HACK=1\nsource /etc/zsh/completion.d/abra" >> ~/.zshrc
|
echo "PROG=abra\n_CLI_ZSH_AUTOCOMPLETE_HACK=1\nsource /etc/zsh/completion.d/abra" >> ~/.zshrc
|
||||||
# to test, run the following: "abra app <hit tab key>" - you should see command completion!
|
# to test, run the following: "abra app <hit tab key>" - you should see command completion!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user