Skip to content
Myr

Update troubleshooting section

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Peter · committed by David Peter · parent a03ed8b · Browse files · 1 file+9 added−9 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+9 added−9 removed

  • other:+9 added−9 removed

1 file+9 added−9 removed

modified:README.md+9 added-9 removed
371 unmodified lines
372also used in [ripgrep](https://github.com/BurntSushi/ripgrep) (check it out!).373374## Troubleshooting375376### `fd` does not find my file!377378Remember that `fd` ignores hidden directories and files by default. It also ignores patterns379from `.gitignore` files. If you want to make sure to find absolutely every possible file, always380use the options `-u`/`--unrestricted` option (or `-HI` to enable hidden and ignored files):381``` bash382> fd -u …383```384385### Colorized output386387`fd` can colorize files by extension, just like `ls`. In order for this to work, the environment388variable [`LS_COLORS`](https://linux.die.net/man/5/dir_colors) has to be set. Typically, the value
5 unmodified lines
394[here](https://github.com/trapd00r/LS_COLORS).395396`fd` also honors the [`NO_COLOR`](https://no-color.org/) environment variable.397389### `fd` does not find my file!390391Remember that `fd` ignores hidden directories and files by default. It also ignores patterns392from `.gitignore` files. If you want to make sure to find absolutely every possible file, always393use the options `-u`/`--unrestricted` option (or `-HI` to enable hidden and ignored files):394``` bash395> fd -u …396```397398### `fd` doesn't seem to interpret my regex pattern correctly399400A lot of special regex characters (like `[]`, `^`, `$`, ..) are also special characters in your401shell. If in doubt, always make sure to put single quotes around the regex pattern:
296 unmodified lines