Closed lovesegfault closed 4 years ago
How did you install starship
?
If I simply call eval "$(starship init zsh)"
then I get your behavior (since the inner zsh
doesn't init starship
), but if I add the line too my .zshrc
it works fine.
This also happens if I directly create a new shell from within starship
with the first way, so I would guess that this is actually a problem with your installation rather then the plugin.
Does the behavior also occur if you simply call zsh
again?
How did you install starship?
I use home-manager
, here's my config: https://github.com/lovesegfault/nix-config/blob/master/users/bemeurer/core/starship.nix
If I simply call eval "$(starship init zsh)" then I get your behavior (since the inner zsh doesn't init starship), but if I add the line too my .zshrc it works fine.
In my .zshrc
I see this:
if [ -z "$INSIDE_EMACS" ]; then
eval "$(/nix/store/wdjk1q2ckk2wa8vg9macwwn8vl4nna1m-starship-0.43.0/bin/starship init zsh)"
fi
Does the behavior also occur if you simply call zsh again?
Nope! If I manually run zsh
inside the broken shell I get a non-broken shell
I still think it's an issue of the way starship
is installed.
.zshrc
applied? bash $SHELL
in your normal starship
prompt?starship
and zsh-nix-shell
and no other things you do to your zsh installation?Unfortunately I don't use home-manager
, so trying to reproduce this issue would be quite hard on my system. Other, more conventional prompts work fine as far as I can tell.
Since the first level works and it seems to only affect starship
I give this issue a very low priority. I will leave the issue open though.
Issue description
When nesting
nix-shell
's I find that this breaks my prompt (starship).Steps to reproduce
nix-shell -p hello
nix-shell -p hello
Technical details
Please run the following commands and paste the results:
zsh 5.8 (x86_64-pc-linux-gnu)