mirror of https://github.com/sharkdp/fd.git
parent
828649a30d
commit
690976380d
|
@ -418,6 +418,14 @@ use a character class with a single hyphen character:
|
||||||
> fd '[-]pattern'
|
> fd '[-]pattern'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### "Command not found" for `alias`es or shell functions
|
||||||
|
|
||||||
|
Shell `alias`es and shell functions can not be used for command execution via `fd -x` or
|
||||||
|
`fd -X`. In `zsh`, you can make the alias global via `alias -g myalias="…"`. In `bash`,
|
||||||
|
you can use `export -f my_function` to make available to child processes. You would still
|
||||||
|
need to call `fd -x bash -c 'my_function "$1"' bash`. For other use cases or shells, use
|
||||||
|
a (temporary) shell script.
|
||||||
|
|
||||||
## Integration with other programs
|
## Integration with other programs
|
||||||
|
|
||||||
### Using fd with `fzf`
|
### Using fd with `fzf`
|
||||||
|
|
Loading…
Reference in New Issue