Nix : Fix tmpshell.

This commit is contained in:
Dmitry Voronin 2024-01-29 00:53:09 +03:00
parent 4b324cd3a4
commit 69e077e897

View file

@ -76,14 +76,14 @@ alias shell="nix_shell"
# Spawn nix-shell with specified packages.
# Usage: nix_tmpshell <PACKAGES>
function nix_tmpshell() {
local pkgs="${*}"
local pkgs="${@}"
if [[ "${pkgs}" = "" ]]; then
help nix_tmpshell
return 2
fi
nix_shell="tmp" nix-shell -p "${pkgs}"
nix_shell="tmp" nix-shell -p ${pkgs}
}
alias tmpshell="nix_tmpshell"