ende completions

You can use the output script to configure autocompletion for ende commands. For example: ende un -> Tab -> ende uninstall.

Note

If you installed Ende with Homebrew, shell completions are installed and kept up to date for you, as long as your shell is configured to load completions from Homebrew's completions directory. In that case you do not need to run ende completions manually.

Examples

Configure Bash shell completion

ende completions bash > ende.bash

if [ -d "/usr/local/etc/bash_completion.d/" ]; then
  sudo mv ende.bash /usr/local/etc/bash_completion.d/
  source /usr/local/etc/bash_completion.d/ende.bash
elif [ -d "/usr/share/bash-completion/completions/" ]; then
  sudo mv ende.bash /usr/share/bash-completion/completions/
  source /usr/share/bash-completion/completions/ende.bash
else
  echo "Please move ende.bash to the appropriate bash completions directory"
fi

Configure PowerShell shell completion

ende completions powershell | Out-String | Invoke-Expression

Configure zsh shell completion

First add the following to your .zshrc file:

fpath=(~/.zsh/completion $fpath)
autoload -U compinit
compinit

Then run the following commands:

ende completions zsh > _ende
mv _ende ~/.zsh/completion/_ende
autoload -U compinit && compinit

Configure fish shell completion

ende completions fish > completions.fish
chmod +x ./completions.fish

Command line usage:

completions

Generate shell completions

Options

--dynamic

Generate dynamic completions for the given shell (unstable), currently this only provides available tasks for ende task.