mirror of https://github.com/sharkdp/fd.git
Format notes in Readme
This commit is contained in:
parent
aeb4a5fdad
commit
5cd15536b6
|
@ -261,7 +261,9 @@ To make exclude-patterns like these permanent, you can create a `.fdignore` file
|
||||||
/mnt/external-drive
|
/mnt/external-drive
|
||||||
*.bak
|
*.bak
|
||||||
```
|
```
|
||||||
Note: `fd` also supports `.ignore` files that are used by other programs such as `rg` or `ag`.
|
|
||||||
|
> [!NOTE]
|
||||||
|
> `fd` also supports `.ignore` files that are used by other programs such as `rg` or `ag`.
|
||||||
|
|
||||||
If you want `fd` to ignore these patterns globally, you can put them in `fd`'s global ignore file.
|
If you want `fd` to ignore these patterns globally, you can put them in `fd`'s global ignore file.
|
||||||
This is usually located in `~/.config/fd/ignore` in macOS or Linux, and `%APPDATA%\fd\ignore` in
|
This is usually located in `~/.config/fd/ignore` in macOS or Linux, and `%APPDATA%\fd\ignore` in
|
||||||
|
@ -284,7 +286,8 @@ option:
|
||||||
If you also want to remove a certain class of directories, you can use the same technique. You will
|
If you also want to remove a certain class of directories, you can use the same technique. You will
|
||||||
have to use `rm`s `--recursive`/`-r` flag to remove directories.
|
have to use `rm`s `--recursive`/`-r` flag to remove directories.
|
||||||
|
|
||||||
Note: there are scenarios where using `fd … -X rm -r` can cause race conditions: if you have a
|
> [!NOTE]
|
||||||
|
> There are scenarios where using `fd … -X rm -r` can cause race conditions: if you have a
|
||||||
path like `…/foo/bar/foo/…` and want to remove all directories named `foo`, you can end up in a
|
path like `…/foo/bar/foo/…` and want to remove all directories named `foo`, you can end up in a
|
||||||
situation where the outer `foo` directory is removed first, leading to (harmless) *"'foo/bar/foo':
|
situation where the outer `foo` directory is removed first, leading to (harmless) *"'foo/bar/foo':
|
||||||
No such file or directory"* errors in the `rm` call.
|
No such file or directory"* errors in the `rm` call.
|
||||||
|
|
Loading…
Reference in New Issue