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

[Bug]: Config file not created by the installer script #1997

Open
1 task done
jamesscottbrown opened this issue May 2, 2024 · 1 comment
Open
1 task done

[Bug]: Config file not created by the installer script #1997

jamesscottbrown opened this issue May 2, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jamesscottbrown
Copy link

jamesscottbrown commented May 2, 2024

What did you expect to happen?

After running the installer script, I expect the config file .config/atuin/config.toml to have been created.

What happened?

The config file (and indeed the .config/atuin directory) isn't created until the atuin command is run.

This was initially confusing: I was installing clients to use with a self-hosted atuin server, so wanted to edit the sync_address setting before running atuin login.

There was also no indication that a config file would be created by running an atuin command,

Atuin doctor output

I don't think this is relevant, but for one VM I tested this in:

atuin:
  version: 18.2.0
  sync: null
shell:
  name: bash
  default: unknown
  plugins:
  - bash-preexec
system:
  os: Ubuntu
  arch: x86_64
  version: '24.04'
  disks:
  - name: /dev/sda1
    filesystem: ext4
  - name: /dev/sda16
    filesystem: ext4
  - name: /dev/sda15
    filesystem: vfat
  - name: :/home/jsb
    filesystem: fuse.sshfs

Code of Conduct

  • I agree to follow this project's Code of Conduct
@jamesscottbrown jamesscottbrown added the bug Something isn't working label May 2, 2024
@jamesscottbrown jamesscottbrown changed the title [Bug]: [Bug]: Config file not created by the installer script May 2, 2024
@jamesscottbrown
Copy link
Author

jamesscottbrown commented May 2, 2024

This is even more confusing because the default version of config.toml changes some values from what their defaults would otherwise be (to enter_accepts = true and records = true).

When I was testing I installed on three machines minutes apart and one of them wouldn't sync its history with the others. It turned out that on that machine I had run an atuin command and edited the generated config file (whereas on the others I started with an empty file). This generated config file included records = true and changed the sync mechanism from v1 to v2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant