Skip to main content Skip to complementary content

Optional: Installing the dynctl auto-completion feature

Availability-noteBeta

Setting up auto-completion makes dynctl easier to use by providing real-time command suggestions.

Auto-completion provides context-sensitive suggestions for commands, flags, and parameters as you type.

About this task

Set up auto-completion for your preferred shell:

Auto-completion in Bash

Availability-noteBeta

Procedure

  1. Install the bash-completion package.
  2. Run one of the following commands depending on your operating system:
    • For Linux:
      dynctl completion bash > /etc/bash_completion.d/dynctl
    • For Mac:
      dynctl completion bash > $(brew --prefix)/etc/bash_completion.d/dynctl
    This sets up auto-completion for all sessions.

Auto-completion in Zsh

Availability-noteBeta

Procedure

  1. If shell completion has not been enabled, run this command once:
    echo "autoload -U compinit; compinit" >> ~/.zshrc

    This command initializes the completion system in Zsh.

    If shell completion was previously enabled in your Zsh environment, you do not need to run this command again. The existing completion setup continues to work, and you can proceed directly to the next step to load the dynctl auto-completion feature.

  2. To set up auto-completion for all sessions, run:
    dynctl completion zsh > "${fpath[1]}/_dynctl"
  3. Start a new Zsh session for the changes to take effect.

Auto-completion in Fish

Availability-noteBeta

Procedure

Run this command to set up auto-completion for all sessions:
dynctl completion fish > ~/.config/fish/completions/dynctl.fish

Auto-completion in PowerShell

Availability-noteBeta

Procedure

Apply these steps to set up auto-completion for all sessions:
  1. Generate the auto-completion script:
    dynctl.exe completion powershell > dynctl.ps1
  2. Add a dot-sourcing line to your PowerShell profile to include the file's contents in the profile script.

    Example

    . .\dynctl.ps1

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!