Skip to content

Add support to override hostname and username via env vars#1041

Merged
conradludgate merged 1 commit into
atuinsh:mainfrom
lugoues:add_host_user_env_overrides
Jun 12, 2023
Merged

Add support to override hostname and username via env vars#1041
conradludgate merged 1 commit into
atuinsh:mainfrom
lugoues:add_host_user_env_overrides

Conversation

@lugoues

@lugoues lugoues commented Jun 12, 2023

Copy link
Copy Markdown
Contributor

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

vercel Bot commented Jun 12, 2023

Copy link
Copy Markdown

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

@ellie ellie left a comment

Copy link
Copy Markdown
Member

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

lugoues commented Jun 12, 2023

Copy link
Copy Markdown
Contributor Author

Formatting :'(

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.

3 participants