Skip to content

Fix integration with eshell #21

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stac47
Copy link

@stac47 stac47 commented Dec 21, 2024

Hello

Problem: When I am in eshell and I change the ruby version with chruby-use, the ruby version does not change:

  ~ $ ruby --version
  ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [x86_64-linux]
  <M-x chruby-use, RET choose another version>
  ~ $ ruby --version
  ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [x86_64-linux]

It seems the assignment to the buffer local variable eshell-path-env does not work. Moreover this one was deprecated in Emacs 29.1.

Solution: Use the eshell-set-path to set the eshell PATH and make sure this function is available by requiring the eshell package.

Regards

Problem: When I am in eshell and I change the ruby version with
`chruby-use`, the ruby version does not change:

  ~ $ ruby --version
  ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [x86_64-linux]
  <M-x chruby-use, RET choose another version>
  ~ $ ruby --version
  ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [x86_64-linux]

It seems the assignment to the buffer local variable `eshell-path-env`
does not work. Moreover this one was deprecated in Emacs 29.1.

Solution: Use the `eshell-set-path` to set the eshell PATH and make
sure this function is available by requiring the `eshell` package.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant