- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.5k
docs: update completion guide #5239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: update completion guide #5239
Conversation
| The current sentences are a note about a limitation with Bash, this is not Bash section, we will not describe each completion possibility (and only on macOS) it makes no sense. | 
| So, maybe we can delete  Shell Completion
 See the instructions on  macOSThere are two versions of  Install  brew install bash-completion@2
echo 'export BASH_COMPLETION_COMPAT_DIR="/usr/local/etc/bash_completion.d"' >>~/.bashrc
echo '[[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh"' >>~/.bashrc
exec bash # reload and replace (if it was updated) shell
type _init_completion && echo "completion is OK" # verify that bash-completion v2 is correctly installedAdd  echo 'source <(golangci-lint completion bash)' >>~/.bashrc
source ~/.bashrc | 
| It's a better idea. | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR updates "Shell Completion" guide.