chisui / zsh-nix-shell

zsh plugin that lets you use zsh in nix-shell shells.
BSD 3-Clause "New" or "Revised" License
373 stars 19 forks source link

concat existing NIX_SHELL_PACKAGES with the new one #29

Closed ZenithalHourlyRate closed 3 years ago

ZenithalHourlyRate commented 3 years ago

Demo:


# zenithal @ Sun in ~ [4:38:57]
$ echo $NIX_SHELL_PACKAGES

# zenithal @ Sun in ~ [4:39:04]
$ nix-shell -p mtr

# zenithal @ Sun in ~ [4:39:09]  { mtr }
$ echo $NIX_SHELL_PACKAGES
mtr

# zenithal @ Sun in ~ [4:39:13]  { mtr }
$ nix-shell -p go

# zenithal @ Sun in ~ [4:39:19]  { mtr go }
$ echo $NIX_SHELL_PACKAGES
mtr go

# zenithal @ Sun in ~ [4:39:22]  { mtr go }
$ nix-shell -p nodejs

# zenithal @ Sun in ~ [4:39:29]  { mtr go nodejs }
$ echo $NIX_SHELL_PACKAGES
mtr go nodejs