logo
devenv
Difftastic
Initializing search
    cachix/devenv
    • Home
    • Documentation
    • Blog
    • Community
    cachix/devenv
    • Home
      • Getting Started
      • Files And Variables
        • Basics
        • Packages
        • Scripts
        • Languages
        • Processes
        • Containers 🆕
        • Pre-Commit Hooks
        • Common Patterns
        • Inputs
        • Composing Using Imports
        • Automatic Shell Activation
        • Garbage Collection
        • Using With Flakes
        • Using With flake.parts
        • GitHub Actions
        • Codespaces / devcontainer
        • Difftastic
      • Examples
      • Roadmap
        • devenv.yaml
        • devenv.nix
      • Index
        • 2023
        • 2022
      • Get Involved
      • Contributing

    To get started using diffstatic - a structural diff that understands syntax for over 30 langauges, flip a toggle:

    devenv.nix
    { pkgs, ... }:
    
    {
        difftastic.enable = true;
    }
    

    Once you run devenv shell, you should see the following output when using git diff:

    Screenshot of difftastic and JS