Skip to content

cd - doesn't get you back to the project directory #2853

@pbek

Description

@pbek

Describe the bug

When you leave a project directory where you have devenv allow enabled and try to get back to it with cd - you will get to another previous directory.

I'm not sure if this is a problem in combination with fish and zoxide, but I paste my config.

home-manager config:

    programs = {
      fish = {
        enable = true;
        shellInit = ''
          devenv hook fish | source
        '';
      };

      # A smarter cd command
      # https://github.com/ajeetdsouza/zoxide
      zoxide = {
        enable = true;
        enableFishIntegration = true;
        options = [ "--cmd cd" ];
      };
    };

To reproduce

  • cd your-project
  • devenv allow (see that devenv env is built)
  • cd .. get out of project directory
  • cd - expect to get back into project directory
  • See that you are in a different directory or the directory didn't change at all

Version

devenv 2.1.3 (x86_64-linux) from main branch yesterday (8eff3cd)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions