You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Very very often I use fd to grep inside many files at once. For example:
fd . -e py -X grep foo
However, the results come back without color, which can be hard to parse. So I must always manually specify --color=always:
fd . -e py -X grep --color=always foo
This left me wondering if it were somehow possible to, without relying on global aliases, configure things such that when I pass command X into exec/exec-batch, default flags appropriate for X would also be automatically supplied.
For example, perhaps some fdexec.rc/fdx.rc file with contents like
Not as simple or elegant IMHO as supporting this feature natively from within fd as I initially described. But in the meantime, your proposal is a very nice stopgap solution.
Very very often I use
fd
togrep
inside many files at once. For example:However, the results come back without color, which can be hard to parse. So I must always manually specify
--color=always
:This left me wondering if it were somehow possible to, without relying on global aliases, configure things such that when I pass command X into
exec
/exec-batch
, default flags appropriate for X would also be automatically supplied.For example, perhaps some
fdexec.rc
/fdx.rc
file with contents likeLet me know you think about this proposal, or if the desired behavior is already possible, please let me know how. Thanks!
The text was updated successfully, but these errors were encountered: