Examples
Examples
This section provides a collection of real-world examples to demonstrate how to use HermitGrab effectively for various use cases. Each example includes a brief explanation and the corresponding hermit.toml
configuration.
- Git Configuration Based on Tags: Shows how to use tag-based conditional installs to manage different Git configurations for work and personal use.
- OS-Specific Configuration with Tags: Demonstrates how to apply different settings for Unix vs. Windows environments.
- Fish Shell with UBI and Tag Helpers: Configures Fish shell with platform-specific logic and uses tag-based actions to link helper functions.
- Snippet-Based Universal Installer (UBI): Highlights how to use reusable snippets to simplify binary installations across different tools.
- Patching Configuration Files: Explains how to non-destructively patch configuration files like VS Code’s
settings.json
using JSON Merge Patch. - Profiles and Global Detectors: Illustrates how to use a root
hermit.toml
to define global profiles and environment detectors.