Created
April 10, 2017 07:15
-
-
Save brgnepal/1c07774e87cd23856a4563e1ff01276e to your computer and use it in GitHub Desktop.
Bash completion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[budhram@dhcp35-83 minishift]$ minishift completion -h | |
Outputs minishift shell completion for the given shell (bash) | |
This depends on the bash-completion binary. Example installation instructions: | |
OS X: | |
$ brew install bash-completion | |
$ source $(brew --prefix)/etc/bash_completion | |
$ minishift completion bash > ~/.minishift-completion | |
$ source ~/.minishift-completion | |
Fedora: | |
$ sudo dnf install bash-completion | |
$ minishift completion bash > ~/.minishift-completion | |
$ source ~/.minishift-completion | |
Ubuntu: | |
$ apt-get install bash-completion | |
$ source /etc/bash-completion | |
$ source <(minishift completion bash) | |
Additionally, you may want to output completion to a file and source in your .bashrc | |
Usage: | |
minishift completion SHELL [flags] | |
Global Flags: | |
--alsologtostderr log to standard error as well as files | |
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0) | |
--log_dir string If non-empty, write log files in this directory (default "") | |
--logtostderr log to standard error instead of files | |
--show-libmachine-logs Show logs from libmachine. | |
--stderrthreshold severity logs at or above this threshold go to stderr (default 2) | |
-v, --v Level log level for V logs | |
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging | |
[budhram@dhcp35-83 minishift]$ | |
[budhram@dhcp35-83 minishift]$ | |
[budhram@dhcp35-83 minishift]$ minishift completion bash > ~/.minishibash: _get_comp_words_by_ref: command not found | |
^C | |
[budhram@dhcp35-83 minishift]$ minishift completion bash > ~/.minishift-completion | |
[budhram@dhcp35-83 minishift]$ | |
[budhram@dhcp35-83 minishift]$ source ~/.minishift-completion | |
[budhram@dhcp35-83 minishift]$ | |
[budhram@dhcp35-83 minishift]$ | |
[budhram@dhcp35-83 minishift]$ sudo dnf install bash-completion | |
Last metadata expiration check: 2:53:28 ago on Mon Apr 10 09:50:52 2017. | |
Package bash-completion-1:2.4-1.fc24.noarch is already installed, skipping. | |
Dependencies resolved. | |
Nothing to do. | |
Complete! | |
[budhram@dhcp35-83 minishift]$ | |
[budhram@dhcp35-83 minishift]$ | |
[budhram@dhcp35-83 minishift]$ | |
[budhram@dhcp35-83 minishift]$ minishift verbash: _get_comp_words_by_ref: command not found | |
Error: unknown command "ver" for "minishift" | |
Did you mean this? | |
version | |
Run 'minishift --help' for usage. | |
[budhram@dhcp35-83 minishift]$ | |
[budhram@dhcp35-83 minishift]$ minishift opbash: _get_comp_words_by_ref: command not found | |
Error: unknown command "op" for "minishift" | |
Did you mean this? | |
ip | |
openshift | |
stop | |
Run 'minishift --help' for usage. | |
[budhram@dhcp35-83 minishift]$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment