-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Support sudo aliases #247
Comments
Please try the branch I just pushed. I tested it with This approach will DTRT even if if flags are passed to sudo through the alias, e.g., Cross-referencing #168. |
This works fine with arbitrary aliases for Aliases with trailing spaces do not yet work, but I opened a separate issue #249 for this problem. |
After (That's after fixing the newly-added condition to match both I'd like to understand this discrepancy. I'd also like to consider whether there is a cheap way of implementing a more general alias expansion solution — perhaps have the main command word |
The concerns in the last post are mooted by the alias refactorings on master. |
Many users have an alias set up to map the
sudo
command to something even shorter. It would be great if this could be treated likesudo
itself, in terms of highlighting the alias as well as the following commands.The text was updated successfully, but these errors were encountered: