# diagrid completion

Generate shell autocompletion scripts (bash, zsh, fish, powershell)

### Description

To load completions:

Bash:

```
$ source <(diagrid completion bash)

# To load completions for each session, execute once:
# Linux:
$ diagrid completion bash > /etc/bash_completion.d/diagrid
# macOS:
$ diagrid completion bash > /usr/local/etc/bash_completion.d/diagrid
```

Zsh:

```
# If shell completion is not already enabled in your environment,
# you will need to enable it.  You can execute the following once:

$ echo "autoload -U compinit; compinit" >> ~/.zshrc

# To load completions for each session, execute once:
$ export zshFuncPath="${fpath[1]}"; mkdir -p "${zshFuncPath}"; diagrid completion zsh | sudo -E tee "${zshFuncPath}/_diagrid" 1>/dev/null

# You will need to start a new shell for this setup to take effect.
```

fish:

```
$ diagrid completion fish | source

# To load completions for each session, execute once:
$ diagrid completion fish > ~/.config/fish/completions/diagrid.fish
```

PowerShell:

```
PS> diagrid completion powershell | Out-String | Invoke-Expression

# To load completions for every new session, run:
PS> diagrid completion powershell > diagrid.ps1
# and source this file from your PowerShell profile.
```

```
diagrid completion <shell>
```

### Options

```
  -h, --help   help for completion
```
