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

Add blacklist option and disable over SSH by default #69

Merged
merged 1 commit into from Nov 6, 2019

Conversation

@infokiller
Copy link
Contributor

infokiller commented Nov 6, 2019

No description provided.

if [[ -z "$blacklist_regex" ]]; then
return 1
fi
print -rn -- "$last_command" | grep -q -E "$blacklist_regex"

This comment has been minimized.

Copy link
@marzocchi

marzocchi Nov 6, 2019

Owner

out of curiosity, how do you use the blacklist for?

This comment has been minimized.

Copy link
@infokiller

infokiller Nov 6, 2019

Author Contributor

I use it to disable notifications for interactive programs, which I almost never want to get.
One example is having a terminal with vim open somewhere and killing it manually from another one.
Another example is if the background detection of the plugin fails for some reason, I have an extra safeguard.

@marzocchi marzocchi merged commit b3d2e25 into marzocchi:master Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.