Skip to content

Completions, man page, exit codes

Homebrew and the Linux packages install these for you. Otherwise:

Terminal window
sprout --completion bash > ~/.local/share/bash-completion/completions/sprout
sprout --completion zsh > "${fpath[1]}/_sprout"
sprout --completion fish > ~/.config/fish/completions/sprout.fish
sprout --completion powershell >> $PROFILE

Completions cover every flag, the --sort values, git branches and tags for --diff, and folders for the path. They’re generated from the same definitions the binary parses, so they can’t go out of date.

Terminal window
man sprout # Homebrew and Linux packages
sprout --man | man -l - # anywhere else on Linux
Variable Effect
NO_COLOR Turn colors off
SPROUT_CONFIG Path of the user config file
XDG_CONFIG_HOME Where the user config lives if SPROUT_CONFIG isn’t set
Code Meaning
0 Success
1 Runtime error: missing path, not a git repository, failed clone
2 Invalid flags, arguments or config