diff --git a/cli/cli.go b/cli/cli.go index 6b971ade..cea0b9ef 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -80,26 +80,29 @@ EXAMPLE: switch shellType { case "bash": fmt.Println(fmt.Sprintf(` -# run the following commands to install auto-completion -sudo mkdir /etc/bash_completion.d/ +# 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 +source /etc/bash_completion.d/abra # To test, run the following: "abra app " - you should see command completion! `, autocompletionFile)) case "zsh": fmt.Println(fmt.Sprintf(` -# run the following commands to install auto-completion -sudo mkdir /etc/zsh/completion.d/ +# 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 +source /etc/zsh/completion.d/abra # to test, run the following: "abra app " - you should see command completion! `, 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 +source /etc/fish/completions/abra # to test, run the following: "abra app " - you should see command completion! `, autocompletionFile)) } 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