-
Notifications
You must be signed in to change notification settings - Fork 95
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
post_cmd functionality addition #134
Comments
I think the names of the hooks are somehow opposite. I guess what you are calling |
For calculating execution duration you can indeed use precmd + preexec (I have an example in prompt.gem, see However note that bash-preexec is simply a user-friendly wrapper around the hooks bash exposes, and bash doesn't expose enough hooks to fully implement pre- and post- hooks for all events in an interactive shell. For example #28 discusses using the relatively-new |
Is there a way to add a post_cmd array so after the pre_cmds and command is run something additional is run, such as a duration caclulation?
The text was updated successfully, but these errors were encountered: