Skip to content

zsh: rehash after adding commands #15

Description

@kolloch

If you add commands to the current environment, zsh might not pick them up if it has already cached the resolved path of another location.

To reproduce

  1. Use zsh
  2. Have a locally installed JDK
  3. enable some bazel_env via direnv
  4. which jstack --> should output the globally installed one
  5. Add jstack to the bazel_env
  6. which jstack --> still points to the global one, nothing changed
  7. rehash
  8. which jstack --> points to the bazel_env one

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions