Closed ZenithalHourlyRate closed 3 years ago
Does the issue persist if you try this branch? https://github.com/chisui/zsh-nix-shell/tree/issue/28
It works!
BTW, NIX_SHELL_PACKAGES
should be concated so I suggest the following change (want a Co-authored-by)
- local NIX_SHELL_PACKAGES=""
+ local LOCAL_NIX_SHELL_PACKAGES="${NIX_SHELL_PACKAGES}"
and change the variable name in the other places accordingly.
It works for me as follows (with modified zsh-theme)
# zenithal @ Sun in ~ [3:44:01]
$ nix-shell -p nodejs
# zenithal @ Sun in ~ [3:44:07] { nodejs }
$ nix-shell -p go
# zenithal @ Sun in ~ [3:44:10] { nodejs go }
$ nix-shell -p mtr
# zenithal @ Sun in ~ [3:44:18] { nodejs go mtr }
$
Ok, I'll merge the change.
The feature request seems like a good idea. If you open a pull-request you'll be listed as a contributor.
Issue description
Did you install the plugin according to the installation guide? If not, does the issue persist if you do install it that way?
According to the installtion guide.
Steps to reproduce
I
set -x
for these setups, the log is at https://shz.al/R9P6.Technical details
Please run the following commands and paste the results:
command nix-shell -p nix-info --run "nix-info -m"
zsh --version
Discussion
Seems that https://github.com/chisui/zsh-nix-shell/blob/a2139b32fc1429160fc40658c9e16177c20597fc/nix-shell.plugin.zsh#L55 caused the problem as after one
nix-shell
,$SHELL
is set to/home/zenithal/.oh-my-zsh/custom/plugins/nix-shell/scripts/buildShellShim