Skip to content

[Bug]: atuin hex ignores $SHELL and there is no way to change it #3326

@xav-ie

Description

@xav-ie

What did you expect to happen?

> $env.SHELL = 'nu'
> atuin hex
> bash -c 'echo $SHELL'
< 'nu'

atuin hex should respect $SHELL or have some way to override and not forcefully use login shell.

What happened?

> $env.SHELL = 'nu'
> atuin hex
> bash -c 'echo $SHELL'
< 'zsh'

I try to set $SHELL, but it does not work. It always chooses to use my login shell.

My setup is to keep zsh as my login shell for simplicity. My tmux has my $SHELL as nu. Trying to use atuin hex forces me to use zsh after running it and there is no way to override it.

Atuin doctor output

{
  "atuin": {
    "version": "18.13.3",
    "commit": "NO_GIT",
    "sync": null,
    "sqlite_version": "3.46.0"
  },
  "shell": {
    "name": "nu",
    "default": "zsh",
    "plugins": [
      "atuin"
    ],
    "preexec": "built-in"
  },
  "system": {
    "os": "NixOS",
    "arch": "x86_64",
    "version": "26.05",
    "disks": [
      {
        "name": "/dev/nvme0n1p2",
        "filesystem": "ext4"
      },
      {
        "name": "/dev/nvme0n1p2",
        "filesystem": "ext4"
      },
      {
        "name": "/dev/nvme0n1p1",
        "filesystem": "vfat"
      }
    ]
  }
}

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions