You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I removed by ~/.bashrc. The gnome-terminal seems to always start at level 2, no idea why. If I switch to a tty, I have a level of 1 but the problem persists. Also, the prompt doesn't change.
@DamienCassou Do you have a bash_profile? Can you share your configuration.nix? I suspect this is some kind of weird interaction with your shell configuration but it's hard to tell what it might be
@shlevy what do you mean by vty? How can I copy/paste the output of bash -x from a tty? I tried redirections, but this didn't work. When done from gnome-terminal, the output contains many many things that are not printed from a tty.
@shlevy I found something interesting. ./dev-shell starts to work (i.e., the prompt is changed to nix-shell:[...]) as soon as I turn program.bash.enableCompletion off. If I turn it back on, it fails again. I reproduced that many times.
Here is the output of bash -x from gnome-terminal with bash completion off and removed ~/.bashrc.
Hmm, I have enableCompletion too. What packages have anything in $profile/etc/bash_completion.d and $profile/share/bash-completion/completions, where $profile=/run/current-system or ~/.nix-profile?
Activity
domenkozar commentedon Aug 28, 2016
cc @shlevy
shlevy commentedon Aug 28, 2016
This works fine for me, against NixOS/nixpkgs@c5cbda2 (release-16.03) and NixOS/nixpkgs@ed0eb59 (master).
DamienCassou commentedon Aug 28, 2016
@shlevy can it be related to nix-community/emacs2nix#23 ?
shlevy commentedon Aug 29, 2016
No idea, sorry
danbst commentedon Sep 1, 2016
Can you reproduce this without extra shell layer?
Also, your prompt text didn't change, but I have this
Maybe you have some magic in
.bashrc?DamienCassou commentedon Sep 2, 2016
I removed by
~/.bashrc. The gnome-terminal seems to always start at level 2, no idea why. If I switch to a tty, I have a level of 1 but the problem persists. Also, the prompt doesn't change.shlevy commentedon Sep 2, 2016
@DamienCassou Do you have a bash_profile? Can you share your configuration.nix? I suspect this is some kind of weird interaction with your shell configuration but it's hard to tell what it might be
DamienCassou commentedon Sep 2, 2016
@shlevy I don't have any
~/.bash_profile. Myconfiguration.nixis at https://gist.github.com/anonymous/8ac0a1e8b4b1f538e2e911674db92b2f.shlevy commentedon Sep 2, 2016
@DamienCassou Can you paste the output printed when you run
bash -x(ideally from a vty, just to reduce confounders)DamienCassou commentedon Sep 2, 2016
@shlevy what do you mean by vty? How can I copy/paste the output of
bash -xfrom a tty? I tried redirections, but this didn't work. When done from gnome-terminal, the output contains many many things that are not printed from a tty.shlevy commentedon Sep 2, 2016
Can you try in screen/tmux with a suitable scrollback? Again otherwise in a tty.
DamienCassou commentedon Sep 2, 2016
@shlevy I found something interesting.
./dev-shellstarts to work (i.e., the prompt is changed tonix-shell:[...]) as soon as I turnprogram.bash.enableCompletionoff. If I turn it back on, it fails again. I reproduced that many times.Here is the output of
bash -xfromgnome-terminalwith bash completion off and removed~/.bashrc.shlevy commentedon Sep 2, 2016
Hmm, I have enableCompletion too. What packages have anything in $profile/etc/bash_completion.d and $profile/share/bash-completion/completions, where $profile=/run/current-system or ~/.nix-profile?
hedning commentedon Sep 6, 2016
Sounds exactly like #976, I'm guessing
nix-shell -Aetc. doesn't work either if you have completion on? #1034 should probably fix it.DamienCassou commentedon Sep 8, 2016
@shlevy nothing in
/run/current-system. In~/.nix-profile:dconf,subversion,git,password-store,backintime-common,bash-completion.@hedning how can I apply this patch on top of NixOS please?
stale commentedon Feb 15, 2021
I marked this as stale due to inactivity. → More info
stale commentedon May 2, 2022
I closed this issue due to inactivity. → More info
tomberek commentedon Aug 13, 2026
Closing as stale. Re-open if needed.