fd¶
A simple, fast and user-friendly alternative to 'find' (github.com/sharkdp/fd)
- Intuitive syntax: fd PATTERN instead of find -iname 'PATTERN'.
- Regular expression (default) and glob-based patterns.
- Very fast due to parallelized directory traversal.
- Uses colors to highlight different file types (same as ls).
- Supports parallel command execution
- Smart case: the search is case-insensitive by default. It switches to case-sensitive if the pattern contains an uppercase character*.
- Ignores hidden directories and files, by default.
- Ignores patterns from your .gitignore, by default.
- The command name is 50% shorter* than find :-).
Install¶
Usage¶
Search by extension:
Include hidden files:
Command execution:
fd -e zip -x unzip # run command with each item
fd -g 'test_*.py' -X vim # run single comand with all items
Filter by type:
-t, --type <filetype>
- file (f)
- directory (d)
- symlink (l)
- executable (x)
- empty (e)o
- socket (s)
- pipe (p)
Using fd
with fzf
¶
Type vim <Ctrl-T>
on your terminal to open fzf and search through the fd-results
fzf keybindings: