Installation¶
Requirements¶
| Requirement | Version | Notes |
|---|---|---|
| Bash | 3.2+ | macOS default Bash (3.2) is fully supported |
| Git | Any | Must be on your PATH |
| Git LFS | Any | Optional only needed for gut big commands |
Unix / Linux / macOS¶
By default, gut installs to /usr/local:
- Binary:
/usr/local/bin/gut - Library:
/usr/local/lib/gut/*.sh - Completion:
/usr/local/share/gut/completion/
Custom install directory¶
Make sure the bin subdirectory is on your PATH:
Windows¶
Git for Windows already ships with bash.exe, so gut works without any extra setup.
- Clone or download gut anywhere on your machine.
- Add the
gut\bindirectory to your WindowsPATHenvironment variable. - Use
gutfrom Command Prompt, PowerShell, or Git Bash.
Verifying the Installation¶
Auto-Completion¶
gut ships with tab-completion for both Zsh and Bash, covering all commands and their subcommands. It also completes branch names for gut switch, gut integrate, and gut compare.
Add to ~/.zshrc:
Then reload:
Add to ~/.bashrc or ~/.bash_profile:
Then reload:
Because gut isn't installed to a standard Unix directory on Windows, you'll need to source the completion file directly from wherever you downloaded the gut repository.
Add this to ~/.bashrc or ~/.bash_profile:
# Replace C:/path/to/gut with the actual folder where you put gut
source "C:/path/to/gut/completion/gut-completion.bash"
Then reload:
Custom install directory
If you used GUT_INSTALL_DIR, replace /usr/local with your chosen path in the completion snippets above.
Uninstalling¶
Unix / macOS¶
And remove the completion lines from your shell profile.
Windows¶
- Delete the
gutfolder you downloaded. - Remove the
gut\bindirectory from your WindowsPATHenvironment variable.