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 support to override hostname and username via env vars #1041

Merged
merged 1 commit into from Jun 12, 2023

Conversation

Lugoues
Copy link
Contributor

@Lugoues Lugoues commented Jun 12, 2023

This PR allows you to set ATUIN_HOST_NAME and ATUIN_HOST_USER as a means of overriding the default values from the system calls. I found that controlling the hostname and user when using devcontainers in a container was extremely tedious and this will help a great deal in controlling how things are persisted in atuin.

I chose the names ATUIN_HOST_NAME and ATUIN_HOST_USER to try to avoid confusion with a user's atuin username, but if anyone has any recommendations I'd be more than happy to change them.

@vercel
Copy link

vercel bot commented Jun 12, 2023

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

Name Status Preview Comments Updated (UTC)
atuin ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 12, 2023 4:33pm

ellie
ellie previously approved these changes Jun 12, 2023
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.

Looks good to me! Thank you!

Seeing as this is your first time contributing, if you would like a holographic contributors-only Atuin sticker, then please fill out this form!

We do also have a Discord if you'd like to ask any questions, or just fancy hanging out!

@ellie ellie enabled auto-merge (squash) June 12, 2023 07:50
auto-merge was automatically disabled June 12, 2023 16:33

Head branch was pushed to by a user without write access

@Lugoues Lugoues force-pushed the add_host_user_env_overrides branch from 4fb016f to 23059b3 Compare June 12, 2023 16:33
@Lugoues
Copy link
Contributor Author

Lugoues commented Jun 12, 2023

Formatting :'(

@conradludgate conradludgate enabled auto-merge (squash) June 12, 2023 16:55
@conradludgate conradludgate merged commit a6da534 into atuinsh:main Jun 12, 2023
16 checks passed
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.

None yet

3 participants