Configuring CLI autocomplete
To configure CLI autocompletion, you must have two pieces of information: the name of
the shell you're using and the location of the
Locate the CLI completer.
Add the completer's folder to your path:
Find your shell's profile script in your user folder.
Add the following command to your bash_profiler, replacing
/usr/local/bin/cdp_completerwith the actual location discovered in the previous sub-step:
complete -C /usr/local/bin/cdp_completer cdp
Reload the profile into the current session to put the changes into effect. Replace
.bash_profilewith the name of the shell script you discovered in the first sub-step:
$ source ~/.bash_profile
- Find your shell's profile script in your user folder.
cdp<TAB> to display the available options for autocomplete.