-
Notifications
You must be signed in to change notification settings - Fork 98
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
use aliases command in entr #50
Comments
Hello @nicola-lunghi! |
Hi I just found that I can do
In bash > 4.0 :-) |
I agree with @iamleot that a script it usually the most strait-forward thing to do:
This is worth it even for a one-line script because when you |
I use quite a lot of aliases, having entr be able to use them directly would be very comfortable. I don't know how to write C, but I'm interested to know how/why this was not implemented. Are aliases special or difficult in some ways? Could I write a PR to enable this functionality? Would you accept such a PR @eradman ? |
Aliases are special because they're not part of the environment, they're a feature of the shell. This means @nielsbom it's good that you brought this back up because there is a simple we can do, namely run shell with the login
Each shell is different, but here is the relevant part from the bash(1) man page
Another option is to source a file that defines aliases directly
|
Closing since the use of shell aliases it outside the scope of what As noted, files can be sourced manually
|
Hi
I have an alias set like
alias my_cmd='./do_something && ./do_something_else && echo "done"'
how can I use it with entr like
git ls-files | entr my_cmd
??
The text was updated successfully, but these errors were encountered: