-
-
Notifications
You must be signed in to change notification settings - Fork 77
Provide an eshell-aware nix
command
#202
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
base: master
Are you sure you want to change the base?
Conversation
Sweet, definitely trying this out. |
lovely, just what I needed. Will definitely try it out later today. update: it works fine for me. I did not notice any obvious issues. I tried it on a couple of repositories, both medium sized (~500k loc each) and I love it! |
Hi! I have an issue where the first I am not really good at Elisp but I added a few debugs to try and figure out what is going on: https://gist.github.com/nvimtor/2c9ef0a8fabd669385589956bb9ef2db then I got these logs:
it seems the Removing the check for (when (and cmd (buffer-live-p buffer) (eq 0 (process-exit-status proc))) makes it work flawlessly. |
Ah, you mean like running |
not necessarily; if I exit the first shell and then try to spawn a new one, the same happens. I also realized that some eshell buffers work consistently, some don't work at all! But the "issue" is always the same: Curious, are you using |
I am, but I think I didn't actually test it in this case - I'll take a look, thanks for reporting 🙂 |
Having this + eat will be great. It's the main thing that prevents me from using eshell, because we rely on Nix at my job to build projects, and |
@knazarov sure you know this but envrc-mode + |
Status: I think I've found the culprit, should have the fixed version today; as an extra, I'm implementing support for nested shells (e.g. running |
Okie, ready! Changes:
(btw, this package is compatible with |
From what I understand, envrc-related things don't properly work with shell aliases, but mostly with env variables. In projects I'm working on this leads to subtle bugs. The only solution that will work universally is to actually run the commands in the proper nix subshell (which I hope this pull request is about). |
2ff9d09
to
f1d5880
Compare
This commit introduces an eshell-aware
nix
command that allows to runnix develop
andnix shell
that extend the current eshell session instead of spawning an external process.Closes #164.