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:
Terminal window doggo completions bash > doggo_completion.bash -
Source the generated file in your
.bashrc
or.bash_profile
:Terminal window echo "source ~/path/to/doggo_completion.bash" >> ~/.bashrcReplace
~/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:Terminal window autoload -U compinitcompinit -
Generate the completion script and add it to your Zsh functions path:
Terminal window doggo completions zsh > "${fpath[1]}/_doggo" -
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:
Terminal window $ doggo completions fish > ~/.config/fish/completions/doggo.fish -
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