Shell Integration
Command Prompt
Section titled “Command Prompt”You can run pogo info to get the current Pogo status to stdout. This can be used in a command prompt to display the current Pogo status.
Example for Fish:
function fish_vcs_prompt --description 'Print all vcs prompts' pogo info $argv # Run pogo info or fish_git_prompt $argv # Fallback to other VCSs or fish_hg_prompt $argv or fish_fossil_prompt $argvendCompletion
Section titled “Completion”The Pogo binary includes completion scripts for Bash, Zsh, Fish, and PowerShell.
pogo completion fish | sourceTo load completions for every new session, execute once:
pogo completion fish > ~/.config/fish/completions/pogo.fishIf 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" >> ~/.zshrcTo load completions in your current shell session:
source <(pogo completion zsh)To load completions for every new session, execute once:
Linux:
pogo completion zsh > "${fpath[1]}/_pogo"macOS:
pogo completion zsh > $(brew --prefix)/share/zsh/site-functions/_pogoTo load completions in your current shell session:
source <(pogo completion bash)To load completions for every new session, execute once:
Linux:
pogo completion bash > /etc/bash_completion.d/pogomacOS:
pogo completion bash > $(brew --prefix)/etc/bash_completion.d/pogoPowerShell
Section titled “PowerShell”To load completions in your current shell session:
pogo completion powershell | Out-String | Invoke-ExpressionTo load completions for every new session, add the output of the above command to your powershell profile.