Auto-completion support
To enhance your experience with dct-toolkit
, an auto-completion feature is implemented to streamline command entry. This functionality facilitates the auto-completion of commands and options with a simple press of the Tab key.
To enable this feature, first generate the auto-completion script by executing the following command:
dct-toolkit generate_completion >> dct_toolkit_auto_completion_script
For immediate use in your current shell session, activate the script with the following command:
source dct_toolkit_auto_completion_script
Alternatively, for a swift activation within the same session, the following command can be utilized:
source <(dct-toolkit generate_completion)
Please note that these methods only apply the auto-completion feature for the duration of the current shell session. For a more permanent solution that ensures auto-completion is available in all future sessions, you must append a command to your shell's configuration file (~/.bashrc
for Bash or ~/.zshrc
for Zsh). Use one of the following commands for Bash or Zsh, respectively.:
For Bash:
CODEecho "source <(dct-toolkit generate_completion)" >> ~/.bashrc
For Zsh:
CODEecho "source <(dct-toolkit generate_completion)" >> ~/.zshrc
Please be aware that the dct-toolkit
auto-completion feature is currently supported only on Bash-type shells.