Skip to content
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

Incompatibility with any other script using bash-preexec #67

Open
qbouvet opened this issue Sep 27, 2020 · 1 comment
Open

Incompatibility with any other script using bash-preexec #67

qbouvet opened this issue Sep 27, 2020 · 1 comment

Comments

@qbouvet
Copy link

qbouvet commented Sep 27, 2020

undistract-me is incompatible with any other script that relies on bash-preexec, for instance bash-timer.

That is because undistract-me uses variables precmd and preexec to pass its callback functions to bash-preexec. If any other script does the same thing, then whichever is sourced last overwrites these variables and the callbacks of the other scripts are discarded.

This is solved updating bash-preexec, I will send a PR shortly. Could you consider merging it in ? This is really useful for people using the script.

Best

@qbouvet
Copy link
Author

qbouvet commented Sep 27, 2020

See Pull Request #68

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant