1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-10 13:03:55 +02:00

nix env shell: Move from nix shell, add shorthand alias

This commit is contained in:
Robert Hensing 2024-05-30 18:22:11 +02:00
parent 98b85b2166
commit c692f6af13
5 changed files with 114 additions and 77 deletions

View file

@ -5,6 +5,9 @@ source common.sh
clearStore
clearCache
# nix shell is an alias for nix env shell. We'll use the shorter form in the rest of the test.
nix env shell -f shell-hello.nix hello -c hello | grep 'Hello World'
nix shell -f shell-hello.nix hello -c hello | grep 'Hello World'
nix shell -f shell-hello.nix hello -c hello NixOS | grep 'Hello NixOS'