Skip to content

Installation Guide

Install the latest release on macOS or Linux with:

go install github.com/radiofrance/dib@latest

Binaries are available to download from the GitHub releases page.

Shell autocompletion

Configure your shell to load dib completions:

To load completion run:

. <(dib completion bash)

To configure your bash shell to load completions for each session add to your bashrc:

# ~/.bashrc or ~/.bash_profile
command -v dib >/dev/null && . <(dib completion bash)

If you have an alias for dib, you can extend shell completion to work with that alias:

# ~/.bashrc or ~/.bash_profile
alias tm=dib
complete -F __start_dib tm

To configure your fish shell to load completions for each session write this script to your completions dir:

dib completion fish > ~/.config/fish/completions/dib.fish

To load completion run:

. <(dib completion powershell)

To configure your powershell shell to load completions for each session add to your powershell profile:

Windows:

cd "$env:USERPROFILE\Documents\WindowsPowerShell\Modules"
dib completion >> dib-completion.ps1
Linux:

cd "${XDG_CONFIG_HOME:-"$HOME/.config/"}/powershell/modules"
dib completion >> dib-completions.ps1

To load completion run:

. <(dib completion zsh) && compdef _dib dib

To configure your zsh shell to load completions for each session add to your zshrc:

# ~/.zshrc or ~/.profile
command -v dib >/dev/null && . <(dib completion zsh) && compdef _dib dib

or write a cached file in one of the completion directories in your ${fpath}:

echo "${fpath// /\n}" | grep -i completion
dib completion zsh > _dib

mv _dib ~/.oh-my-zsh/completions  # oh-my-zsh
mv _dib ~/.zprezto/modules/completion/external/src/  # zprezto