| 105 | } |
| 106 | |
| 107 | func bashCompletionLong(programName string) string { |
| 108 | return fmt.Sprintf(`Generate the autocompletion script for the bash shell. |
| 109 | |
| 110 | This script depends on the 'bash-completion' package. |
| 111 | If it is not installed already, you can install it via your OS's package manager. |
| 112 | |
| 113 | To load completions in your current shell session: |
| 114 | |
| 115 | source <(%[1]s completion bash) |
| 116 | |
| 117 | To load completions for every new session, execute once: |
| 118 | |
| 119 | #### Linux: |
| 120 | |
| 121 | %[1]s completion bash > /etc/bash_completion.d/%[1]s |
| 122 | |
| 123 | #### macOS: |
| 124 | |
| 125 | %[1]s completion bash > $(brew --prefix)/etc/bash_completion.d/%[1]s |
| 126 | |
| 127 | You will need to start a new shell for this setup to take effect. |
| 128 | `, programName) |
| 129 | } |
| 130 | |
| 131 | func zshCompletionLong(programName string) string { |
| 132 | return fmt.Sprintf(`Generate the autocompletion script for the zsh shell. |