1 2 3 4 5 6 7 8 9 10 11 12
function nxs if test $argv[1] nix run -f '<nixpkgs>' $argv else if test -e default.nix nix-shell else echo "No `default.nix`" return 1 end end end