Linux

Where Is the ugrep Config File?

ugrep config file lookup with save and disable flags on Linux.

Last updated

ugrep loads config from the working dir first, then home. A config flag family selects, saves or disables files explicitly. Plain runs skip loading while the alias embraces it.

Not flag-only despite first impressions. The save flow writes defaults that later runs pick up. Keep project and global layers distinct.

Where ugrep stores this, by platform

Linux
~/.ugrep

Working dir file first, then home global. Save, select and disable flag family controls loading. Alias loads config while plain runs stay batch style.

Frequently asked questions

How do I create the config?

Run the save variant in home to write global defaults. Project files in working dirs override per repo. Disable loading entirely with the no-config flag when debugging.

Why does config apply inconsistently?

The ug alias auto-loads config with pretty sorting while plain ugrep runs batch style without it. That split explains settings that apply in one invocation and vanish in the other.

Notice an outdated path? Let us know.