Skip to content

refactor(bash): refactor and localize HISTORY => __atuin_output #1535

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

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

akinomyoga
Copy link
Contributor

This is relatively trivial. I do not see the global variable HISTORY set by __atuin_history being documented. Also, the variable names are different for different shells (e.g. output in zsh, and ATUIN_H in fish), so this doesn't seem to be a part of the public interface of Atuin's integration. I'd suggest localizing those variables. Note that ATUIN_H in fish seems to be already local. I'm not sure how this is processed for the Nu shell integration, but I guess it would be processed without creating a variable.

I also localize output set by the Zsh integration. Even if we expose it on purpose, the variable name choice doesn't seem nice to avoid conflicts with the users' variables.

Copy link

vercel bot commented Jan 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
atuin-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 9, 2024 11:10pm

Copy link
Member

@ellie ellie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@ellie ellie enabled auto-merge (squash) January 10, 2024 13:20
@ellie ellie merged commit a80ca27 into atuinsh:main Jan 10, 2024
@akinomyoga akinomyoga deleted the bash-HISTORY branch January 10, 2024 21:48
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

Successfully merging this pull request may close these issues.

2 participants