-
-
Notifications
You must be signed in to change notification settings - Fork 15k
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
nix-shell does not work when bashCompletion is enabled #7611
Comments
I cannot reproduce this error. On my system, everything works as expected:
Personally, I believe it's far more likely that the cause for this issue is @vu3rdd's |
@peti I don't have a |
@peti another data: Without the comment on Is there a way to see any logs of what is happening in the system or why it failed to boot into xmonad even though the configuration explicitly said so? Perhaps that may reveal something on the failure. |
It may be related to another package that provides the bash completion. What do you have in |
@domenkozar @peti It looks like it works just fine if I remove the bashCompletion package. What does the bashCompletion package do? |
@vu3rdd, can you please paste the complete output that you get when running |
@peti This is the output with
|
@vu3rdd, this is not what I need. Please configure your system with bash completion enabled, run |
Here it is:
|
OK. Now, the shell's prompt should say |
Yes, I reported that in the original report too. Yes, I use bash. |
@peti are you able to reproduce it by including bashCompletion in the systemPackages and doing a Just to summarize, there are 2 things in play:
Leaving both on, does not enter into the nix-shell environment. |
Don't put |
Sure. Closing the bug. Thanks. |
I am using nix-shell and the quick start example in the manual (step #6
listed here: https://nixos.org/nix/manual/) does not seem to work for
me:
Now, I figured that I have bashCompletion enabled in the /etc/nixos/configuration.nix.
programs.bash.enableCompletion = true;
If I comment this line out and do
nixos-rebuild switch
, thennix-shell
works as expected (both with and without the-pure
flag).I believe this is a bug.
nix-shell -v
does not seem to show anything interesting w.r.t this particular behaviour, so not including the output of that here.The text was updated successfully, but these errors were encountered: