Shell Completions
Doggo provides shell completions for zsh
and fish
, enhancing your command-line experience with auto-completion for commands and options.
Bash Completions
To enable Bash completions for Doggo:
-
Generate the completion script:
-
Source the generated file in your
.bashrc
or.bash_profile
:Replace
~/path/to/
with the actual path where you saved the completion script. -
Restart your shell or run
source ~/.bashrc
.
Zsh Completions
To enable Zsh completions for Doggo:
-
Ensure that shell completions are enabled in your
.zshrc
file: -
Generate the completion script and add it to your Zsh functions path:
-
Restart your shell or run
source ~/.zshrc
.
Now you can use Tab to auto-complete Doggo commands and options in Zsh.
Fish Completions
To enable Fish completions for Doggo:
-
Generate the completion script and save it to the Fish completions directory:
-
Restart your Fish shell or run
source ~/.config/fish/config.fish
.
You can now use Tab to auto-complete Doggo commands and options in Fish.
Using Completions
With completions enabled, you can:
- Auto-complete command-line flags (e.g.,
doggo --<Tab>
) - Auto-complete DNS record types (e.g.,
doggo -t <Tab>
) - Auto-complete subcommands and options