Closed tobiasBora closed 1 year ago
This plugin determines the current zsh
executable by evaluating $SHELL
it seems that this variable points to bash
. Either change your login shell to zsh or override SHELL
in your .zshrc
. I'll add this constraint to the readme.
Does this fix your issue?
Oh interesting, I'll try. Shouldn't the zsh plugin automatically ensure that $SHELL
is properly configured?
Also, I have two questions:
installPhase
from the shell?Hello,
I had the same issue and I can confirm that adding SHELL=zsh
in my .zshrc
seems to have fixed the issue.
After setting SHELL=zsh, ssh -oProxyCommand no longer works:
$ SHELL=zsh ssh -oProxyCommand=false foo
zsh: No such file or directory
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535
So that's not a generic solution for NixOS.
I think that we should just use
NIX_EXECUTING_SHELL=$(readlink /proc/$$/exe)
to detect the currently running shell.
@clefru I incorporated your suggestion and created a new release v0.6.0.
Issue description
When I run the
nix-shell -p XXX
I get an error:I installed the plugin according to the installation guide:
Steps to reproduce
My full installation file (home manager)
Technical details
"x86_64-linux"
Linux 5.15.34, NixOS, 22.05 (Quokka), 22.05pre-git
yes
yes
nix-env (Nix) 2.8.0pre20220411_f7276bc
"home-manager, local-nixos-unstable, local-nixpkgs-unstable, nixgl, nixos-20-03-20.03, nixos-unstable, test"
"nixos"
/nix/var/nix/profiles/per-user/root/channels/nixos
zsh 5.9 (x86_64-pc-linux-gnu)