diff --git a/cli/cli.go b/cli/cli.go index fa2d2d9b..8377c3fc 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -80,7 +80,7 @@ EXAMPLE: switch shellType { case "bash": fmt.Println(fmt.Sprintf(` -# run the following commands to install auto-completion +# run the following commands once to install auto-completion sudo mkdir -p /etc/bash_completion.d/ sudo cp %s /etc/bash_completion.d/abra echo "source /etc/bash_completion.d/abra" >> ~/.bashrc @@ -88,7 +88,7 @@ echo "source /etc/bash_completion.d/abra" >> ~/.bashrc `, autocompletionFile)) case "zsh": fmt.Println(fmt.Sprintf(` -# run the following commands to install auto-completion +# run the following commands to once install auto-completion 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 @@ -96,7 +96,7 @@ echo "PROG=abra\n_CLI_ZSH_AUTOCOMPLETE_HACK=1\nsource /etc/zsh/completion.d/abra `, autocompletionFile)) case "fish": fmt.Println(fmt.Sprintf(` -# run the following commands to install auto-completion +# run the following commands once to install auto-completion sudo mkdir -p /etc/fish/completions sudo cp %s /etc/fish/completions/abra echo "source /etc/fish/completions/abra" >> ~/.config/fish/config.fish diff --git a/scripts/installer/installer b/scripts/installer/installer index b6e0e543..781fd5e9 100755 --- a/scripts/installer/installer +++ b/scripts/installer/installer @@ -87,7 +87,7 @@ function install_abra_release { x=$(echo $PATH | grep $HOME/.local/bin) if [ $? -ne 0 ]; then - echo "$(tput setaf 3)WARNING: $HOME/.local/bin/ is not in \$PATH! If you want to run abra by just typing "abra" you should add it to your \$PATH! To do that run:$(tput sgr0)" + echo "$(tput setaf 3)WARNING: $HOME/.local/bin/ is not in \$PATH! If you want to run abra by just typing "abra" you should add it to your \$PATH! To do that run this once and restart your terminal:$(tput sgr0)" p=$HOME/.local/bin com="echo PATH=\$PATH:$p" if [[ $SHELL =~ "bash" ]]; then