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 zsh_notify_ prefix to global variables #95

Merged
merged 1 commit into from Nov 20, 2022
Merged

Add zsh_notify_ prefix to global variables #95

merged 1 commit into from Nov 20, 2022

Conversation

danielparks
Copy link
Contributor

Previously, the two global variables used to store state during command execution were named last_command and start_time. Since those are both variable names that could easily be used in a shell session or a function, this adds a zsh_notify_ prefix to avoid potential conflicts.

Previously, the two global variables used to store state during command
execution were named `last_command` and `start_time`. Since those are
both variable names that could easily be used in a shell session or a
function, this adds a `zsh_notify_` prefix to avoid potential conflicts.
@danielparks
Copy link
Contributor Author

Tested with zunit, and by starting a new, fresh shell, loading the plugin, and then running sleep 35.

@marzocchi marzocchi merged commit 51e3f4c into marzocchi:master Nov 20, 2022
@danielparks danielparks deleted the namespace_globals branch November 20, 2022 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants