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
When I start a devbox shell I see no visual indication that I'm in the shell, but it definitely is working
# type lazygit
lazygit is hashed (/nix/store/alnmpxx1njfnv671sgnqxrws1bbari6r-lazygit-0.35/bin/lazygit)
# echo $PS1
\n\d \t\n\e[37;44m[\u@\h:\w]\[\e[00m\] \[\e[91m\]$(parse_git_branch)\[\e[00m\]\n#
# type parse_git_branch
parse_git_branch is a function
parse_git_branch ()
{
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
export SHELL=/usr/bin/zsh
zsh
bogosj@debian ~ % devbox shell
Installing nix packages. This may take a while...
Starting a devbox shell...
bogosj@debian ~ % type lazygit
lazygit is /nix/store/alnmpxx1njfnv671sgnqxrws1bbari6r-lazygit-0.35/bin/lazygit
bogosj@debian ~ % exit
bogosj@debian ~ %
Activity
loreto commentedon Aug 28, 2022
@bogosj , may I ask what shell you use? What do you see if you run
echo $SHELL? Is itbash?bogosj commentedon Aug 28, 2022
Yes, bash.
bogosj commentedon Aug 28, 2022
I tried zsh, same situation:
loreto commentedon Aug 28, 2022
Yeah, we need to fix on our side. I just wanted to know which shell so I can make sure it works for it. I'll take a look this coming week.
acrefoot commentedon Aug 29, 2022
Same issue with the prompt not being overridden on Mac :)
shell,nix: fix shell PATH to prefer nix packages
shell,nix: fix shell PATH to prefer nix packages
shell,nix: fix shell PATH to prefer nix packages (#51)
loreto commentedon Sep 2, 2022
@gcurtis merged a fix. It's going out on the next release. Closing.