Skip to content
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 with xonsh #117057

Open
tex opened this issue Mar 20, 2021 · 8 comments
Open

nix-shell with xonsh #117057

tex opened this issue Mar 20, 2021 · 8 comments

Comments

@tex
Copy link
Contributor

tex commented Mar 20, 2021

So I set xonsh as default shell with

  users.defaultUserShell = "/run/current-system/sw/bin/xonsh";

but when I do this

xonsh> nix-shell -p gcc
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
bash>

it gets me to bash. I would expect xonsh. Also it prints some weird error messages, but the package is installed and works.

Also now if I run nvim, it gets arror keys and other non-ascii characters incorrectly and tries print them instead of process them as it should.

Any idea?

@dotlambda
Copy link
Member

You can use nix-shell --run xonsh.

For the rest, cc @spwhitt @vrthra

@tex
Copy link
Contributor Author

tex commented Mar 20, 2021

@dotlambda Thanks. The run works. But the problem with nvim not working under such shell persists. nvim works all-right in normal xonsh. Any more idea? ;-)

@teto
Copy link
Member

teto commented Mar 24, 2021

is your TERM changed in any meaningful way ? try :checkhealth

@tex
Copy link
Contributor Author

tex commented Mar 24, 2021

Cannot check :checkhealt because whole instance of terminal crashes with some xonsh python error.
Running nix-shell -p ... --run 'xonsh -DTERM=xterm-kitty' doesn't help.

@teto
Copy link
Member

teto commented Mar 24, 2021

I tried xterm-kitty in xonsh with neovim master and it worked fine.

@tex
Copy link
Contributor Author

tex commented Mar 24, 2021

Can you share nix override for neovim master?

And did you really run:

> xonsh
> nix-shell -p gcc --run xonsh
> nvim

?

@stale
Copy link

stale bot commented Sep 21, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Sep 21, 2021
@amacfie
Copy link

amacfie commented Aug 13, 2023

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants