New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add default flags for programs used with exec #1427
Labels
Comments
A possible work around for this: Create a wrapper script that looks like com="$1"
shift
case "$com" in
du) du -h "$@";;
grep) grep --color=always --line-number "$@";;
rm) rm -i "$@"
esac then you can use where |
Hey that's pretty slick, thanks @tmccombs! Not as simple or elegant IMHO as supporting this feature natively from within |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: