MCPcopy Create free account
hub / github.com/dropbox/dbxcli / bashCompletionLong

Function bashCompletionLong

cmd/completion.go:107–129  ·  view source on GitHub ↗
(programName string)

Source from the content-addressed store, hash-verified

105}
106
107func bashCompletionLong(programName string) string {
108 return fmt.Sprintf(`Generate the autocompletion script for the bash shell.
109
110This script depends on the 'bash-completion' package.
111If it is not installed already, you can install it via your OS's package manager.
112
113To load completions in your current shell session:
114
115 source <(%[1]s completion bash)
116
117To 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
127You will need to start a new shell for this setup to take effect.
128`, programName)
129}
130
131func zshCompletionLong(programName string) string {
132 return fmt.Sprintf(`Generate the autocompletion script for the zsh shell.

Callers 1

newCompletionCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected