Skip to content

Ruby is unselected when cd'ing out of a directory with a .ruby-version file #50

@paddor

Description

@paddor

With chruby version 1.0.0:

user@xxx-dev-2022 ~/d/r/other  $ chruby
   ruby-3.0.5
 * ruby-3.2.0
user@xxx-dev-2022 ~/d/r/other  $ cd test/
user@xxx-dev-2022 ~/d/r/o/test  $ chruby
   ruby-3.0.5
 * ruby-3.2.0
user@xxx-dev-2022 ~/d/r/o/test  $ cat .ruby-version
3.2.0
user@xxx-dev-2022 ~/d/r/o/test  $ cd ..
user@xxx-dev-2022 ~/d/r/other  $ chruby
   ruby-3.0.5
   ruby-3.2.0

Very confusing. Is there a way to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions