Open FlyingWombat opened 3 months ago
OK, I don't use xonsh though so I won't be able to fix this myself.
I'm just trying out xonsh, so I don't know how it is supposed to work.
Using execx($(nix-your-shell xonsh | grep -e "aliases"))
instead of nix-your-shell xonsh | source
works for setting the aliases.
This looks probably like a case of xonsh/xonsh#5317, as source
is an unthreadable alias.
@Qyriad Proably not. I think the issue is that for xonsh source only works on files and not pipe I think the correct code is
exec ($(nix-your-shell xonsh))
ie run a subprocess and capture its output the $() and then use Pythons"s exec to execute the code generated,.
xonsh will hang, with 100%cpu util.
Setting the aliases manually by copy-pasting them from
nix-your-shell xonsh
into the xonsh prompt works fine.xonsh v0.15.1 nix-your-shell v1.4.4