Completion¶
Overview¶
The completion command generates a completion script for the specified shell.
Usage¶
Completion Command Syntax
shoutrrr completion [SHELL]
Available Options¶
| Shell | Description |
|---|---|
bash |
Generate the completion script for the Bash shell |
fish |
Generate the completion script for the Fish shell |
powershell |
Generate the completion script for PowerShell |
zsh |
Generate the completion script for the ZSH shell |
Completion Script Installation¶
Bash¶
-
Save the completion script depending on your operating system and Bash configuration:
shoutrrr completions bash | sudo tee /usr/share/bash-completion/completions/shoutrrr >/dev/null -
Reload the Bash configuration to make it available to the current shell session:
source ~/.bashrc
Windows PowerShell¶
-
Save the completion script to a location of your preference:
Invoke-Expression "shoutrrr.exe completions powershell | Out-File -FilePath $HOME\Documents\PowerShell\Scripts\shoutrrr_completion.ps1" -
Invoke the completion script within your PowerShell profile:
Add-Content -Path $PROFILE -Value '. $HOME\Documents\PowerShell\Scripts\shoutrrr.ps1' -
Reload your PowerShell profile to invoke the change:
. $PROFILE