haslersn / any-nix-shell

fish and zsh support for the nix run and nix-shell environments of the Nix package manager
MIT License
265 stars 17 forks source link

xonsh cannot find xontribs in any nix-shell #32

Closed 0xc1c4da closed 9 months ago

0xc1c4da commented 9 months ago
user@test ~ @ execx($(any-nix-shell xonsh --info-right))
user@test ~ @ up 1
user@test /home @ cd -
user@test ~ @ nix-shell -p dig
The following xontribs are enabled but not installed: 
   ['pipeliner']
Please make sure that they are installed correctly by checking https://xonsh.github.io/awesome-xontribs/
The following xontribs are enabled but not installed: 
   ['sh']
Please make sure that they are installed correctly by checking https://xonsh.github.io/awesome-xontribs/
The following xontribs are enabled but not installed: 
   ['up']
Please make sure that they are installed correctly by checking https://xonsh.github.io/awesome-xontribs/
The following xontribs are enabled but not installed: 
   ['vox']
Please make sure that they are installed correctly by checking https://xonsh.github.io/awesome-xontribs/
user@test ~ @ up 1                                                                                                                                                  <function <lambda> at 0x7f9cc6a9e160>
xonsh: For full traceback set: $XONSH_SHOW_TRACEBACK = True
xonsh: subprocess mode: command not found: 'up'
Did you mean one of the following?
    X:   Command (X)
    [:   Command ([)
    cp:  Command (cp)
    du:  Command (du)
    ip:  Command (ip)

The program 'up' is not in your PATH. It is provided by several packages.
You can make it available in an ephemeral shell by typing one of the following:
  nix-shell -p h
  nix-shell -p haskellPackages.up-grade
  nix-shell -p openafs
  nix-shell -p up
  nix-shell -p upbound
user@test ~ [1] @

granted this also happens with nix-shell -p dig --run xonsh

also any-nix-shell in nixpkgs is woefully outdated and includes no xonsh support.

0xc1c4da commented 9 months ago

More relevant issue: https://github.com/NixOS/nixpkgs/issues/276326